LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache Server error, libphp5.so (https://www.linuxquestions.org/questions/linux-software-2/apache-server-error-libphp5-so-446404/)

crillegs 05-19-2006 08:42 AM

Apache Server error, libphp5.so
 
Hi Linuxquestions

I've installed Apache with PHP5, but when I try to start the server I get this error:

[root@localhost crillegs]# /usr/local/apache2/bin/apachectl restart httpd: Syntax error on line 408 of /usr/local/apache2/conf/httpd.conf: API module structure `php5_module' in file /usr/local/apache2/modules/libphp5.so is garbled - perhaps this is not an Apache module DSO?

Well line 408 (witch I added myself, to include libphp5.so, and that line is not the problem) tells:

LoadModule php5_module modules/libphp5.so

Anyone have a solution for this?

Best Regards

Christian S.

vikasumit 05-20-2006 02:24 AM

Hi,

It seems your PHP5 so is corrupted or not compile for Apache on your machine, I suggest you download PHP5 for apache source and recomiple it and install.

also try to run httpd -t to test your config before starting service..

Hope that help

stephenb 05-23-2006 01:53 PM

Apache, php5 and mysql have problems working together.

i spent ages trying to figure out a missing libphp5.so file but i found this article and it solved it. results in a valid php5.so file and allows apache to start without errors.

(this won't let me post a link so i'll add it in a seperate post)


My setup is
- Apache 2
- PHP5
- MySQL 5

and all are working fine. If you try what this article suggests and are still having trouble, give me a shout back.

stephenb 05-23-2006 01:56 PM

the link is http://archives.neohapsis.com/archiv...4-q3/0980.html


All times are GMT -5. The time now is 06:27 PM.