[apache2] Unable to open logs

Bonjour a tous !

Voila, je reviens avec un problème que je ne comprends vraiment pas.
Je viens d’installé apache2, juste pour du https, et je me retrouve avec l’erreur suivante :

systemctl status apache2.service :

[code]apache2.service - LSB: Start/stop apache2 web server
Loaded: loaded (/etc/init.d/apache2)
Active: failed (Result: exit-code) since Fri, 17 Oct 2014 09:30:08 +0200; 8s ago
Process: 14397 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
Process: 14618 ExecStart=/etc/init.d/apache2 start (code=exited, status=1/FAILURE)
CGroup: name=systemd:/system/apache2.service

Oct 17 09:30:08 domain.xxx apache2[14618]: Starting web server: apache2no listening sockets available, shutting down
Oct 17 09:30:08 domain.xxx apache2[14618]: Unable to open logs
Oct 17 09:30:08 domain.xxx apache2[14618]: Action ‘start’ failed.
Oct 17 09:30:08 domain.xxx apache2[14618]: The Apache error log may have more information.
Oct 17 09:30:08 domain.xxx apache2[14618]: failed!
[/code]

Installation apache2 :
[mono]apt-get install apache2 apache2-mpm-prefork
a2enmod rewrite[/mono]

Generation de certificat :
[mono]openssl req -x509 -nodes -newkey rsa:1024 -out /etc/ssl/certs/domain.xxx -keyout /etc/ssl/private/domain.xxx.key[/mono]

hostname et hostname -f [Configurer automatiquement par OVH lors de l’installation de la machine]
[mono]domain.xxx[/mono]

Droits sur /var/log/apache2
[mono]drwxr-x— 2 root adm 4096 Oct 17 08:48 apache2
-rw-r----- 1 root adm 0 Oct 17 08:48 access.log
-rw-r----- 1 root adm 166 Oct 17 09:26 error.log
-rw-r–r-- 1 root root 0 Oct 17 08:48 other_vhosts_access.log[/mono]

cat /etc/apache2/ports.conf

[code]# If you just change the port or add more ports here, you will likely also

have to change the VirtualHost statement in

/etc/apache2/sites-enabled/000-default

This is also true if you have upgraded from before 2.2.9-3 (i.e. from

Debian etch). See /usr/share/doc/apache2.2-common/NEWS.Debian.gz and

README.Debian.gz

#NameVirtualHost *:80
#Listen 80

NameVirtualHost XXX.XXX.XXX.XX:443 # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl # to # Server Name Indication for SSL named virtual hosts is currently not # supported by MSIE on Windows XP. Listen 443 Listen 443 [/code]

cat default.domain.xxx

[code]

ServerName www.default.domain.xxx
ServerAdmin root@domain.xxx
DocumentRoot /var/www/default

<Directory /var/www/default>
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

ErrorLog ${APACHE_LOG_DIR}/default.domain.xxx_error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/default.domain.xxx_access.log combined

SSLEngine on

SSLCertificateFile /etc/ssl/certs/domain.xxx.crt
SSLCertificateKeyFile /etc/ssl/private/domain.xxx.key


[/code]

uname -a
[mono]Linux domain.xxx 3.2.0-4-amd64 #1 SMP Debian 3.2.60-1+deb7u3 x86_64 GNU/Linux[/mono]

Merci.

EDIT : Problème résolu !
Le fait qu’aucun port ne soit en écoute faisait directement planté apache.
J’ai une question : Je n’ai pas de site en HTTP classique, tout est en HTTPS. Du coup j’ai le choix entre mettre Listen sur le 80 qui est de toutes façons bloqué par le firewall, ou sur 443 alors que je ne suis pas dans une directive
Quelle est la bonne pratique ?

EDIT 2 : Reponse !
Si on passe par le port 443, Apache loop et plante, donc il faut tout de meme listen le port 80.

Merci !