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.

jaime Avatar

Written by

Comments

3 responses to “Solución: apache2 could not open error log file /var/log/apache2/error.log”

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

    😉

    1. De nada, gracias por comentar.

  2. Realmente un genio!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

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