Portal Home > Knowledgebase > Articles Database > How to install CURL?


How to install CURL?




Posted by Mareshal, 10-09-2009, 09:12 AM
I tried several methods to activate curl, but nothing until now. libcurl is in extension_dir, extension is loaded in php.ini, but something is still going wrong. I tried to install with yum, from source, from rpm. nothing. this it my error from phpinfo(): Now I saw an error. in php.ini open_basedir = Off , but in phpinfo() I get this open_basedir /home/admin/:/tmp:/usr/local/lib/php/ no ideas

Posted by root24x7, 10-09-2009, 06:31 PM
Try setting the open_basedir to none In httpd.conf, in the virtual host entry of the domain add the below line php_admin_value open_basedir none OR Below line to php.ini file(but i don't think this will work as the virtualhost entry in apache configuration will override this default value) open_basedir = none

Posted by offshorehostingnl, 10-09-2009, 07:14 PM
if you have cpanel the best way is: to go to whm --> then on your home click software --> click easyapache --> were it says "Begin by selecting a profile to load:" click basic --> then click start customizing based on profile --> select apache 2.0 and click next step --> Check which php version you want to use (pref php 5) and click next step --> click 5.2.8 and then next step --> now you should be on the Short Options List. While you are here i would advise turning zend and ioncube on and click EXHAUSTIVE OPTIONS LIST --> now that your on the Exhaustive Options List scroll down to php 5.2.8 and check mark curl. --> now scroll all the way down to the bottom and click save and build. now let whm build php and apache!. Grab a coffee you deserve it!

Posted by uptime365, 10-09-2009, 09:15 PM
Php compilation through WHM interface can cause issues. It would be better to login to the shell as root and execute the following command there /scripts/easyapache You can select the needed options as stated above there.

Posted by Mareshal, 10-10-2009, 02:14 AM
Sorry guys, I work wil directadmin(personal reason). Thanks for help, problem has been fixed. I just commented that line containing CURLOPT_FOLLOWLOCATION , and seems like script is working well. That line was just to allow redirections. And I have installed on vps standlone packages: php , apache, mysql, not compelte like easyapache or lamp



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
nginx weird problem (Views: 811)
if isset (Views: 763)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.