Computing.Net > Forums > Web Development > Upgrading PHP 4.3.9 to 5.0.3 failed

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Upgrading PHP 4.3.9 to 5.0.3 failed

Reply to Message Icon

Name: Martin691
Date: January 27, 2005 at 00:09:34 Pacific
OS: Fedora Core 3
CPU/Ram: 512Mb
Comment:

When I try to restart the httpd service, I get the following message:

httpd failed. The error was: Stopping httpd: [FAILED]

Starting httpd: Syntax error on line 190 of /etc/httpd/conf/httpd.conf:
Cannot load /etc/httpd/modules/libphp5.so into server: libdb-4.3.so: cannot open shared object file: No such file or directory
[FAILED]


If I then do the following commands, you will get a feel for what I have available to me:

ls -l `find / -name *libphp* -print 2>/dev/null`
-rwxr-xr-x 1 root root 2021628 Jan 12 14:12 /usr/lib/httpd/modules/libphp5.so


cat php.conf
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
LoadModule php5_module modules/libphp5.so
#
# Cause the PHP interpreter to handle files with a .php extension.
#
AddHandler php5-script .php
AddType text/html .php
#
# Add index.php to the list of files that will be served as directory
# indexes.
#
DirectoryIndex index.php

rpm -qa | grep php
php-gd-5.0.3-1
php-soap-5.0.3-1
php-mbstring-5.0.3-1
php-devel-5.0.3-1
php-odbc-5.0.3-1
php-imap-5.0.3-1
php-ncurses-5.0.3-1
php-xml-5.0.3-1
php-mysql-5.0.3-1
php-5.0.3-1
php-snmp-5.0.3-1
php-pear-5.0.3-1
gphpedit-0.9.50-1
php-ldap-5.0.3-1
php-xmlrpc-5.0.3-1


rpm -qa | grep libd
libdv-tools-0.103-1
libdbi-dbd-pgsql-0.6.5-9
libdv-devel-0.103-1
libdv-0.103-1
libdbi-dbd-mysql-0.6.5-9
libdbi-0.6.5-9
libdbi-devel-0.6.5-9

I would be grateful for any advice regarding this problem. I can still start Apache if I comment out the LoadModule command in php.conf, but then PHP doesn't work.
In order to do my install I used all rpms from the web location:
http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/



Sponsored Link
Ads by Google

Response Number 1
Name: Martin691
Date: February 1, 2005 at 00:05:48 Pacific
Reply:

I still could do with some advice. But I have kind of got around this. I managed to run the following command:
rpm -qf /etc/httpd/modules/libphp5.so
This listed the package that owned the file. This confirmed that the right php packages were installed.
I then did:
rpm -qf libdb-4.3.so which suggested that I needed to install db4-4.3.27-1.i386.rpm and similar packages.
To install these I had to use rpm with the --force flag so that it would not stop when finding problems with dependancies.

Unfortunately, when doing this the output suggests that I have alot of conflicting problems as the old db4-4.2.52 version is still required by otherpackages such as sendmail etc.

Apache seems to run ok with PHP, but I now think my system is not in good shape. Any idea on how to check this out?


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Upgrading PHP 4.3.9 to 5.0.3 failed

Php ? www.computing.net/answers/webdevel/php-/264.html

php/mysql & transaction question www.computing.net/answers/webdevel/phpmysql-amp-transaction-question/3263.html

php n00b www.computing.net/answers/webdevel/php-n00b/265.html