PHP 5.0.4 upgrade problem

Support/Development for PHP
cgraham
Forum User
Forum User
Posts: 14
Joined: Wed May 10, 2006 9:34 pm

PHP 5.0.4 upgrade problem

Unread post 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?
cgraham
Forum User
Forum User
Posts: 14
Joined: Wed May 10, 2006 9:34 pm

more info

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Can you give me the output of rpm -q curl, thanks!
mufasa
New Forum User
New Forum User
Posts: 2
Joined: Thu Jul 06, 2006 10:50 am

Unread post 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.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

hmm, do you have any other instances of curl installed? Use: rpm -qa |grep -i curl
cgraham
Forum User
Forum User
Posts: 14
Joined: Wed May 10, 2006 9:34 pm

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
cgraham
Forum User
Forum User
Posts: 14
Joined: Wed May 10, 2006 9:34 pm

Unread post by cgraham »

YES!!! I am up and running again...that did the trick ;)

Thanks
bcrooker
Forum User
Forum User
Posts: 17
Joined: Thu Jul 06, 2006 4:18 pm

Unread post 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.
mufasa
New Forum User
New Forum User
Posts: 2
Joined: Thu Jul 06, 2006 10:50 am

Unread post 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?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post 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.
bcrooker
Forum User
Forum User
Posts: 17
Joined: Thu Jul 06, 2006 4:18 pm

Unread post 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
bcrooker
Forum User
Forum User
Posts: 17
Joined: Thu Jul 06, 2006 4:18 pm

Unread post 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.
cgraham
Forum User
Forum User
Posts: 14
Joined: Wed May 10, 2006 9:34 pm

Unread post 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
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

What script are you using? I'll see if I can duplicate it here
Post Reply