Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-25-2009, 07:28 AM
Active Member
 
Posts: 40
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 ?
Reply With Quote
  #2 (permalink)  
Old 02-25-2009, 07:41 AM
Moderator
 
Posts: 7,928
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 ?
__________________
Reply With Quote
  #3 (permalink)  
Old 02-25-2009, 07:50 AM
Active Member
 
Posts: 40
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.
Reply With Quote
  #4 (permalink)  
Old 02-25-2009, 07:56 AM
Moderator
 
Posts: 7,928
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.
__________________
Reply With Quote
  #5 (permalink)  
Old 02-25-2009, 08:11 AM
Active Member
 
Posts: 40
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 ?
Reply With Quote
  #6 (permalink)  
Old 02-25-2009, 08:14 AM
Moderator
 
Posts: 7,928
Default

Hmmm, try
Code:
locate php
__________________
Reply With Quote
  #7 (permalink)  
Old 02-25-2009, 08:27 AM
Active Member
 
Posts: 40
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
Reply With Quote
  #8 (permalink)  
Old 02-25-2009, 08:40 AM
Moderator
 
Posts: 7,928
Default

Not without re-compiling the library I would have thought.
__________________
Reply With Quote
  #9 (permalink)  
Old 02-25-2009, 08:46 AM
Active Member
 
Posts: 40
Default

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.