Page 1 of 2
PHP 5.0.4 upgrade problem
Posted: Wed Jul 05, 2006 8:16 pm
by cgraham
I just ugraded and followed the instructions here:
http://www.atomicrocketturtle.com/Jooml ... ew/141/29/
However, when I reboot the server Apache does not start. When I go to Plesk | Server | Service Management it shows Apache as stopped. When I try to start Apache I get the following error:
Unable to make action: Unable to manage service by websrvmng: websrvmng: Service httpd failed to start
0: /usr/local/psa/admin/htdocs/server/restart_services.php:28 psaerror(string "Unable to make action: Unable to manage service by websrvmng: websrvmng: Service httpd failed to start")
I have the following installed:
php 1:5.0.4-13.rh90.art.i386
php-mysql 1:5.0.4-13.rh90.art.i386
php-odbc 1:5.0.4-13.rh90.art.i386
php-pgsql 1:5.0.4-13.rh90.art.i386
php-pear 1:5.0.4-13.rh90.art.i386
php-imap 1:5.0.4-13.rh90.art.i386
php-ldap 1:5.0.4-13.rh90.art.i386
php-gd 1:5.0.4-13.rh90.art.i386
Any ideas on what is wrong?
more info
Posted: Wed Jul 05, 2006 8:50 pm
by cgraham
I tried to reatart via shell with apachectl restart, but I got the following....
Syntax error on line 1 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp4.so into server:
/etc/httpd/modules/libphp4.so: cannot open shared object file: No such file or directory
So, I checked in the php.conf file and I see this:
Code: Select all
LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php4 .php3 .phtml
DirectoryIndex index.php index.php3
I changed to this:
Code: Select all
LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php .php4 .php3 .phtml
DirectoryIndex index.php index.php3
That did not help...I get this new error:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: curl_version_info
Posted: Thu Jul 06, 2006 7:18 am
by scott
Can you give me the output of rpm -q curl, thanks!
Posted: Thu Jul 06, 2006 10:53 am
by mufasa
I've got the same problem. Below is my output:
# rpm -q curl
curl-7.10.6-1.rh90.art
# apachectl restart
Syntax error on line 6 of /etc/httpd/conf.d/php.conf:
Cannot load /etc/httpd/modules/libphp5.so into server: /etc/httpd/modules/libphp5.so: undefined symbol: curl_version_info
Have reverted back to php 4.4.2 in the meantime. Hope that info helps.
Posted: Thu Jul 06, 2006 11:03 am
by scott
hmm, do you have any other instances of curl installed? Use: rpm -qa |grep -i curl
Posted: Thu Jul 06, 2006 11:12 am
by cgraham
Hi Scott,
# rpm -q curl
curl-7.9.8-5.2.legacy
# rpm -qa |grep -i curl
curl-7.9.8-5.2.legacy
Posted: Thu Jul 06, 2006 12:17 pm
by scott
I put out a curl update just after your first bug report (curl-7.10.6-1.rh90.art), see if that one resolves your issues. Thats what I was using on my test image from before.
Posted: Thu Jul 06, 2006 12:40 pm
by cgraham
YES!!! I am up and running again...that did the trick
Thanks
Posted: Thu Jul 06, 2006 4:21 pm
by bcrooker
Has anyone had any memory leak issues with this upgrade?
I installed it (RH9 and Plesk 7.5.4) and have been having httpd just going nuts with memory usage (200-300MB per thread).
I just did a 'yum update' and it installed the 5.04 PHP RPM's and the new CURL one.
Right now I am trying to figure out how to downgrade.
Posted: Fri Jul 07, 2006 2:30 am
by mufasa
I've installed the new rpms from ART, and have gotten rid of the nasty curl_version_info error. However, upon restart, I get blank php pages.
Any ideas on this one?
Posted: Fri Jul 07, 2006 7:22 am
by scott
Try running php from the command line on a script to see if there are any errors, I'll bet something cant be loaded.
Posted: Fri Jul 07, 2006 8:07 am
by bcrooker
In case it helps anyone, a full system restart seems to have resolved my memory issues. Odd that just restarting Apache wasn't enough.
As far as the blank page - I have found that PHP 5.0.4 has a bug with its handling of open_basedir - The only fix that I could find was to make the include path equal to the open_basedir path (in the vhost.conf/vhost_ssl.conf file). You can temporarily turn on the display of error messages in the php.ini file which may help. Here is the link for the bug:
http://bugs.php.net/bug.php?id=31054
Posted: Fri Jul 07, 2006 9:48 am
by bcrooker
bcrooker wrote:In case it helps anyone, a full system restart seems to have resolved my memory issues. Odd that just restarting Apache wasn't enough.
Looks like I spoke to soon - it was ok for about 12 hours, but started using up memory again this morning.
Posted: Fri Jul 07, 2006 11:37 am
by cgraham
PHP is having problems loading...here is some output from a cron job I have going:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/dom.so' - /usr/lib/php/modules/dom.so: undefined symbol: htmlCreateMemoryParserCtxt in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/soap.so' - /usr/lib/php/modules/soap.so: undefined symbol: xmlBufferCreateStatic in Unknown on line 0 PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/xsl.so' - /usr/lib/php/modules/xsl.so: undefined symbol: dom_node_class_entry in Unknown on line 0
Posted: Fri Jul 07, 2006 3:02 pm
by scott
What script are you using? I'll see if I can duplicate it here