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.
Enable PHP Modules in Plesk 9.3
-
- Forum User
- Posts: 7
- Joined: Wed Feb 03, 2010 8:14 pm
- Location: Surrey, BC
Re: Enable PHP Modules in Plesk 9.3
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.
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.

"Its not a mac. I run linux... I'm actually cool." - scott
-
- Forum User
- Posts: 7
- Joined: Wed Feb 03, 2010 8:14 pm
- Location: Surrey, BC
Re: Enable PHP Modules in Plesk 9.3
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
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

-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Enable PHP Modules in Plesk 9.3
Yup, phpinfo() lies.
Re: Enable PHP Modules in Plesk 9.3
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.
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.
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
Re: Enable PHP Modules in Plesk 9.3
just remove php-sqlite2
Re: Enable PHP Modules in Plesk 9.3
That easy? lol.
Thanks
Thanks
-
- Long Time Forum Regular
- Posts: 2813
- Joined: Sat Aug 20, 2005 9:30 am
- Location: The Netherlands
Re: Enable PHP Modules in Plesk 9.3
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
Lemonbit Internet Dedicated Server Management