Bonjour,
Mon apache ne se lance plus et voici le message d'erreur :
[root@bgxprsrvnagsa01 /]# systemctl start httpd.service
Job for httpd.service failed. See 'systemctl status httpd.service' and 'journalctl -n' for details.
[root@bgxprsrvnagsa01 /]# systemctl status httpd.service
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
Active: failed (Result: exit-code) since Tue, 2013-07-02 16:51:26 CEST; 8s ago
Process: 5129 ExecStop=/usr/sbin/httpd $OPTIONS -k graceful-stop (code=exited, status=1/FAILURE)
Process: 5127 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/httpd.service
Jul 02 16:51:26 bgxprsrvnagsa01 httpd[5127]: httpd: Syntax error on line 351 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php... directory
Jul 02 16:51:26 bgxprsrvnagsa01 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Jul 02 16:51:26 bgxprsrvnagsa01 httpd[5129]: httpd: Syntax error on line 351 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php... directory
Jul 02 16:51:26 bgxprsrvnagsa01 systemd[1]: Failed to start The Apache HTTP Server.
Jul 02 16:51:26 bgxprsrvnagsa01 systemd[1]: Unit httpd.service entered failed state
[root@bgxprsrvnagsa01 /]# apachectl configtest
httpd: Syntax error on line 351 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/php.conf: Cannot load modules/libphp5.so into server: libpcre.so.0: cannot open shared object file: No such file or directory
Je suis en version :
Fedora release 18 (Spherical Cow)
Kernel \r on an \m (\l)
Voilà ma conf du fichier /etc/httpd/conf.d/php.conf :
#
# PHP is an HTML-embedded scripting language which attempts to make it
# easy for developers to write dynamically generated webpages.
#
<IfModule prefork.c>
LoadModule php5_module modules/libphp5.so
</IfModule>
<IfModule !prefork.c>
LoadModule php5_module modules/libphp5-zts.so
</IfModule>
#
# 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
#
# Uncomment the following line to allow PHP to pretty-print .phps
# files as PHP source code:
#
#AddType application/x-httpd-php-source .phps
Et voilà la fin de mon fichier /etc/httpd/conf/httpd.conf
# Load config files in the "/etc/httpd/conf.d" directory, if any.
IncludeOptional conf.d/*.conf
Quelqu'un a-t-il une idée svp?
Merci.