El 2020-11-08 a las 18:50 +0000, MLP escribió:

> La salida es larguísima:

Porque es de varios días ;-)

> root@debian:~# systemctl apache2 start
> Unknown operation apache2.
> root@debian:~# systemctl apache2.service start
> Unknown operation apache2.service.

Hum... ah, ya. Es al revés:

systemctl start apache2.service

> root@debian:~# journalctl | grep -i apache

)...)

> nov 08 07:16:52 debian systemd[1]: Starting The Apache HTTP Server...
> nov 08 07:16:52 debian apachectl[1107]: AH00558: apache2: Could not reliably 
> determine the server's fully qualified domain name, using 127.0.1.1. Set the 
> 'ServerName' directive globally to suppress this message
> nov 08 07:16:52 debian apachectl[1107]: (2)No such file or directory: 
> AH02291: Cannot access directory '/var/log/apache2/' for main error log
> nov 08 07:16:52 debian apachectl[1107]: (2)No such file or directory: 
> AH02291: Cannot access directory '/var/log/apache2/' for error log of vhost 
> defined at /etc/apache2/sites-enabled/000-default.conf:1
> nov 08 07:16:52 debian apachectl[1107]: AH00014: Configuration check failed
> nov 08 07:16:52 debian apachectl[1107]: Action 'start' failed.
> nov 08 07:16:52 debian apachectl[1107]: The Apache error log may have more 
> information.

Bueno, pues ahí lo tienes. Es un error en la configuración del servidor 
web, concretamente con el directorio de los registros (logs). Revisa la 
configuración del virtual host y del predeterminado, que por algún 
motivo no pueden acceder al archivo o al directorio que has definido 
para el registro de errores.

> nov 08 07:16:52 debian systemd[1]: apache2.service: Control process exited, 
> code=exited, status=1/FAILURE
> nov 08 07:16:52 debian systemd[1]: apache2.service: Failed with result 
> 'exit-code'.
> nov 08 07:16:52 debian systemd[1]: Failed to start The Apache HTTP Server.
> nov 08 07:16:52 debian systemd[1]: Starting Disk Cache Cleaning Daemon for 
> Apache HTTP Server...
> nov 08 07:16:52 debian systemd[1]: Started Disk Cache Cleaning Daemon for 
> Apache HTTP Server.
> nov 08 09:18:39 debian sudo[26959]: martinho : TTY=pts/0 ; PWD=/home/martinho 
> ; USER=root ; COMMAND=/usr/bin/systemctl reload apache2.service
> nov 08 09:18:39 debian systemd[1]: apache2.service: Unit cannot be reloaded 
> because it is inactive.

Saludos, 

-- 
Camaleón 

Responder a