LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Apache won't start (https://www.linuxquestions.org/questions/linux-software-2/apache-wont-start-522519/)

essdeeay 01-24-2007 07:20 PM

Apache won't start
 
I'm using Gentoo, and for some reason the Apache2 service won't start. I get the following error:
Code:

* Apache2 has detected a syntax error in your configuration files:
Syntax error on line 6 of /etc/apache2/modules.d/70_mod_php.conf:
Cannot load /usr/lib/apache2/modules/libphp4.so into server: libmysqlclient.so.14: cannot open shared object file: No such file or directory

The file /etc/apache2/modules.d/70_mod_php.conf, reads:
Code:

# vim: ft=apache sw=4 ts=4
<IfDefine PHP4>

        # Load the module first
        <IfModule !sapi_apache2.c>
                LoadModule php4_module modules/libphp4.so
        </IfModule>

        # Set it to handle the files
        <IfModule mod_mime.c>
                AddType application/x-httpd-php .php
                AddType application/x-httpd-php .phtml
                AddType application/x-httpd-php .php3
                AddType application/x-httpd-php .php4
                AddType application/x-httpd-php-source .phps
        </IfModule>

        AddDirectoryIndex index.php index.phtml
</IfDefine>

The file libphp4.so is present:
Code:

-rwxr-xr-x 1 root root 4074876 Feb  6  2006 /usr/lib/apache2/modules/libphp4.so
How do I go about solving this?

Many thanks,
Steve :)

vbisis 01-25-2007 12:12 AM

According to your error message apache is looking for libmysqlclient.so.14.

Is it there and in the right place?

essdeeay 01-25-2007 03:35 AM

No it's not, but there IS one called libmysqlclient.so.15 in /usr/lib/mysql/

Is this a mysql problem then?

Thanks,
Steve :)

vbisis 01-26-2007 03:28 AM

Looks so. Try creating a link from libmysqlclient.so to libmysqlclient.so.14. Most of times it works ;)


All times are GMT -5. The time now is 05:57 AM.