Results 1 to 9 of 9

Thread: [SOLVED] enable Curl in Php

  1. #1
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default [SOLVED] enable Curl in Php

    Can someone help me to enable the php curl in Zimbra server ?
    What should I change in php.ini or install ?

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Would you expand please ... PHP is not installed by ZCS I believe; so do you require the O/S installation of PHP to have curl ?

  3. #3
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default

    I'm a little confused now I think php was installed with Zimbra, since I can add my own php scripts to the /opt/zimbra/htdocs/ and that works. Only thing I need is to use curl in my php scripts. There is also php.ini in a /opt/zimbra/conf/ but I don't know what should I add to the config.

  4. #4
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Was does
    Code:
    type php
    show ? If it is from /usr/bin then you could try
    Code:
    yum install curl curl-devel
    and see if PHP then picks it up.

  5. #5
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default

    Well, it gives me
    Code:
    bash: type: php: not found
    But phpinfo() in the script tells "PHP Version 5.2.6 "
    So actually do I need to install php ?

  6. #6
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Hmmm, try
    Code:
    locate php

  7. #7
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default

    There is no trace of php but I found a libphp5.so in /opt/zimbra/httpd/modules/
    I wonder if it's possible to just add a curl library

  8. #8
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Not without re-compiling the library I would have thought.

  9. #9
    agnes is offline Active Member
    Join Date
    Mar 2008
    Posts
    40
    Rep Power
    7

    Default

    Yes, that's what I thought ...
    Thanks for your help

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Simple SOAP Admin Example In PHP
    By mikes2277 in forum Developers
    Replies: 11
    Last Post: 07-23-2011, 01:00 AM
  2. PHP LDAP Address/Phone Book
    By phxmark in forum Developers
    Replies: 6
    Last Post: 08-31-2009, 08:54 AM
  3. Replies: 3
    Last Post: 03-20-2008, 02:50 AM
  4. PHP Curl Preauth Code
    By Ericx in forum Developers
    Replies: 0
    Last Post: 02-01-2008, 01:35 PM
  5. Tomcat personnal php webapp
    By dzed in forum Administrators
    Replies: 21
    Last Post: 12-21-2007, 03:25 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •