Page 1 of 1
Enable PHP Modules in Plesk 9.3
Posted: Wed Feb 03, 2010 8:31 pm
by moondog604
Hello I have limited knowledge in linux, and the only time I have compiled PHP was in Windows. I recently got a new dedicated server with Plesk 9.3 installed on CentOS 5. I needed to upgrade the PHP from 5.1 to 5.2 following these instructions and using Yum:
http://www.atomicorp.com/wiki/index.php/PHP
I see curl on the server and in my php file in the configure line shows '--without-curl'
What steps do I have to do to get curl enable for PHP?
I understand how to add new modules via Yum but not sure how to turn them on and off through command line in the ./configure
In fact every time I try ./configure I get a "-bash: ./configure: No such file or directory" message.
Thank you in advance.
Re: Enable PHP Modules in Plesk 9.3
Posted: Thu Feb 04, 2010 9:29 am
by Highland
You can't use configure if you're not compiling the files manually (that's why you have yum and RPMs in the first place).
I looked at my phpinfo and while it does have that flag set as well, I also have a curl block further down the page saying it's enabled (curl is included with /etc/php.d/curl.ini). In fact, if it weren't enabled, I'd be one of the first screaming to get it back.

Re: Enable PHP Modules in Plesk 9.3
Posted: Thu Feb 04, 2010 1:01 pm
by moondog604
Thank you so much for telling me this. I saw that block in my phpinfo as well which had added to the confusion. I can't believe the route I took trying to figure this out, lost 8 hours of my life and got a bad nights sleep hahaha.
Along the way I had found a snippet of code to test to see if curl was installed and it was giving me a negative hit on curl being installed. Only problem with the code is it was checking for the function it was checking for wasn't correct so it was giving me a false negative on curl as well. By that time though I was so out of it from wondering why it wasn't enabled I didn't audit the code I was using lol.
Of course this morning with your input I was able to second guess my previous information and prove curl is installed.
I can't thank you enough. I probably would have been in a bad mood trapped in that pit of despair unable to resolve a none existent problem all day

Re: Enable PHP Modules in Plesk 9.3
Posted: Thu Feb 04, 2010 1:47 pm
by scott
Yup, phpinfo() lies.
Re: Enable PHP Modules in Plesk 9.3
Posted: Sat Feb 06, 2010 9:54 am
by dayo
I just tried to run the upgrade from PHP 5.1.6 to 5.2.12 on a fresh Plesk 9.3 install with Centos 5.4 and it was a no go due to php-sqlite2 having depsolving problems.
I assume the repository is not yet fully up to speed with Plesk 9.3 and hope this is sorted soon ... waiting anxiously until the update.
Re: Enable PHP Modules in Plesk 9.3
Posted: Sat Feb 06, 2010 9:58 am
by scott
just remove php-sqlite2
Re: Enable PHP Modules in Plesk 9.3
Posted: Sat Feb 06, 2010 10:13 am
by dayo
That easy? lol.
Thanks
Re: Enable PHP Modules in Plesk 9.3
Posted: Sat Feb 06, 2010 3:35 pm
by breun
php-curl is provided by the php-common package:
Code: Select all
# rpm -q --whatprovides php-curl
php-common-5.2.12-2.el4.art