Bonjour,

J'utilise debian wheezy issue d'une migration depuis squeeze.

Apache2 refuse de démarrer à cause de permissions sur /var/log ou à cause de 
l'absence de /var/log/apache2:

root@B52:/home/mickael# /etc/init.d/apache2 start
[....] Starting web server: apache2apache2: Could not reliably determine the 
server's fully qualified domain name, using 127.0.1.1 for ServerName
(2)No such file or directory: apache2: could not open error log file 
/var/log/apache2/error.log.
Unable to open logs
Action 'start' failed.
The Apache error log may have more information.
 failed!

J'ai une configuration ou /var/log est monté en tmpfs. Voici mon /etc/fstab:
root@B52:/home/mickael# more /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'vol_id --uuid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
# / was on /dev/sda1 during installation
UUID=c84f7606-4b85-4310-b94c-209226750e44       /               ext2    
noatime,errors=remount-ro       0       1
tmpfs                                           /var/tmp        tmpfs   noatime 
                        0       0
tmpfs                                           /tmp            tmpfs   noatime 
                        0       0
tmpfs                                           /var/log        tmpfs   noatime 
                        0       0
tmpfs                                           /var/lock       tmpfs   noatime 
                        0       0

/dev/md0                                        /mnt/raid1      ext4    noatime 
                        1       2

J'ai purgé le paquet apache2 qui était installé depuis squeeze et je l'ai 
réinstallé. Cela n'a pas résolu le problème.

Si je crée à la main le répertoire /var/log/apache2, apache démarre sans 
problème:
root@B52:/home/mickael# mkdir /var/log/apache2
root@B52:/home/mickael# /etc/init.d/apache2 start
[....] Starting web server: apache2apache2: Could not reliably determine the 
server's fully qualified domain name, using 127.0.1.1 for ServerName
. ok

Voici les permissions sur /var/log:
root@B52:/home/mickael# ls -ld /var/log/
drwxrwxrwt 8 root root 560 Oct 25 00:44 /var/log/

A chaque redémarrage de la machine le répertoire /var/log/apache2 va 
disparaitre. J'aimerais comprendre l'origine du problème. Le package apache2 
a-t-il un problème ou est-ce ma configuration et ce tmpfs qui est à l'origine 
du problème ? 

Cordialement,
Mickaël

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet "unsubscribe"
vers debian-user-french-requ...@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmas...@lists.debian.org
Archive: 
http://lists.debian.org/583231983.31752249.1351119521628.javamail.r...@zimbra17-e3.priv.proxad.net

Répondre à