LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fedora 9 broke my Apache setup -- libphp5.so won't load (https://www.linuxquestions.org/questions/linux-software-2/fedora-9-broke-my-apache-setup-libphp5-so-wont-load-654172/)

philwynk 07-07-2008 05:22 PM

Fedora 9 broke my Apache setup -- libphp5.so won't load
 
Hi, all,

I just upgraded from Fedora core 8 to Fedora Core 9, and my Apache server won't start.

Here's what happens:

Quote:

[root@localhost ~]# apachectl start
httpd: Syntax error on line 209 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load /etc/httpd/modules/libphp5.so into server: libssl.so.6: cannot open shared object file: No such file or directory
The configuration file /etc/httpd/conf.d/php.conf code in question looks like this:

Quote:

#

LoadModule php5_module modules/libphp5.so

#
Line 209 of the file /etc/httpd/conf/httpd.conf looks like this:

Quote:

# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

The module libphp5.so is there in the modules directory, just like it's supposed to be. Any idea why it won't load?

This is urgent. The machine is here to run Apache, and basically for no other reason. I'm dead in the freakin' water until I figure this out. Thanks.

Phil W.

gilead 07-07-2008 05:50 PM

Does libphp5.so have the same permissions as the other modules in that directory?

Also, what is the difference in the version number of Apache between FC8 and FC9? You may need to re-compile the PHP module.

philwynk 07-07-2008 05:57 PM

Quote:

Does libphp5.so have the same permissions as the other modules in that directory?
Yep. First thing I checked.


Quote:

Also, what is the difference in the version number of Apache between FC8 and FC9?
I don't know.

Quote:

You may need to re-compile the PHP module.
Yeah, I just tried to use yum to update php, and discovered that yum doesn't work either. Short version seems to be that the Fedora 9 "preupgrade" path is a POS, and cannot be trusted. I'm extremely disappointed in those fellows, usually their stuff is pretty solid. Now I have to reinstall Fedora core 8 from the ground up, and restore all my stuff. I'm not thrilled, believe me.

custangro 07-07-2008 06:07 PM

Looks like you are missing libssl.so

Try a "yum" install that...either that or just comment out that module load statement (if it isn't necessary).

philwynk 07-07-2008 07:36 PM

Ok... the yum install problem is fixed, that was a known weakness in the Fedora 9 install. Beware, newbies, if you upgrade to Fedora 9 you have a manual rpm update of python in your future.

However, Apache is still broken.

I've noticed that the Fedora 9 version that loaded is the i686 version. My Fedora Core 8 was the i386 version, so all the modules I have installed are the i386 versions as well. Could this be the source of my problem? ANy idea how to resolve?

piesnotpetrol 09-25-2008 06:38 AM

Hi, I've just fixed this problem on my box....

I did a:
yum list php\* | grep installed
and discovered that php-common and the other php packages were not the fc9 version

so I ran the following to fix it:
yum remove php
yum remove php-common
yum install php


HTH


All times are GMT -5. The time now is 01:20 AM.