Solución: apache2 could not open error log file /var/log/apache2/error.log

Si al tratar de subir el servicio apache2 aparece este mensaje:

Starting web server: apache2(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!

Una posible razón es que el directorio /var/log/apache2/ no existe o no tiene los permisos correctos. En mi caso no estaba creada, para lo cual hice:

 mkdir /var/log/apache2

Luego se le da los permisos y se inicia el servicio apache2

chmod 755 /var/log/apache2
service apache2 start

Y Listo.

Subscribe
Notify of
guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Numerobix

Muchas gracias por la solución, me estaba volviendo loco este tema.

😉

Raul

Realmente un genio!!!!