"Unable to open logs" au démarrage d'Apache
Bonjour à vous,
Je tourne depuis quelques heures sur un problème sans en trouver la solution! Je suis presque certain que cela doit être tout con...
En configurant le fichier listen.conf de cette manière je peux démarrer apache sans problème :
Code:
1 2 3 4 5 6 7 8 9
| cat listen.conf
Listen 80
<IfDefine SSL>
<IfDefine !NOSSL>
<IfModule mod_ssl.c>
Listen 443
</IfModule>
</IfDefine>
</IfDefine> |
Code:
1 2
| # service apache2 start
Starting httpd2 (prefork) done |
Par contre en utilisant un virtualhost, cela ne fonctionne pas :cfou:
J'ai essayé de simplifier au maximum mon fichier pour trouver le problème...
Code:
1 2
| cat listen.conf
NameVirtualHost *:80 |
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| # cat test.conf
<VirtualHost *:80>
ServerName schulung01.xxxx.net
DocumentRoot /srv/www/htdocs/cacti
ErrorLog /var/log/apache2/cacti-error_log
CustomLog /var/log/apache2/cacti-access_log combined
HostnameLookups Off
UseCanonicalName Off
ServerSignature On
<Directory "/srv/www/htdocs/cacti">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost> |
Code:
1 2 3 4 5
| # service apache2 start
Starting httpd2 (prefork) no listening sockets available, shutting down
Unable to open logs
startproc: exit status of parent of /usr/sbin/httpd2-prefork: 1
failed |
Où peut être le problème????? droit d'accès??? mais où????
Et on voit bien qu'en générant cette erreur, apache n'écrit nulle part dans les logs!
Code:
1 2 3 4 5 6 7 8
| # ll /var/log/apache2/
total 36
-rw-r--r--+ 1 root root 17311 Dec 6 12:10 access_log
-rw-r--r--+ 1 root root 0 Dec 5 16:46 cacti-access_log
-rw-r--r--+ 1 root root 0 Dec 6 10:39 cacti-error_log
-rw-r--r--+ 1 root root 1300 Dec 6 12:55 error_log
-rw-r--r-- 1 root root 10 Dec 6 12:55 rcapache2.out
... |
Quelqu'un a-t-il une piste? une idée?