Problemas con apache en raspberry

Discusión general sobre Raspberry Pi
Responder
Avatar de Usuario
luquio
Pi Alpha
Pi Alpha
Mensajes: 24
Registrado: 27 Oct 2016, 03:08
Agradecido: 0
Agradecimiento recibido: 1 vez

Hola como están todos, por algún motivo se detuvo el apache y quiero saber el motivo, pero no se como.

Cabe aclarar que tengo una RPI3 con jessie y dentro monte un apache.


Busque en los comandos y encontré que hay uno de status y decía lo siguiente:

Código: Seleccionar todo

pi@raspberrypi:~ $ sudo service apache2 status
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─forking.conf
   Active: inactive (dead) since mar 2017-10-03 07:35:09 -03; 6h ago
  Process: 8726 ExecStop=/etc/init.d/apache2 stop (code=exited, status=0/SUCCESS)
  Process: 8669 ExecReload=/etc/init.d/apache2 reload (code=exited, status=0/SUCCESS)
  Process: 595 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS)

oct 01 21:25:01 raspberrypi sudo[1946]: www-data : TTY=unknown ; PWD=/var/ww...1
oct 01 21:25:01 raspberrypi sudo[1946]: pam_unix(sudo:session): session open...)
oct 01 21:25:17 raspberrypi sudo[1946]: pam_unix(sudo:session): session clos...t
oct 02 07:35:06 raspberrypi systemd[1]: Reloading LSB: Apache2 web server.
oct 02 07:35:06 raspberrypi apache2[13271]: Reloading web server: apache2.
oct 02 07:35:06 raspberrypi systemd[1]: Reloaded LSB: Apache2 web server.
oct 03 07:35:06 raspberrypi systemd[1]: Reloading LSB: Apache2 web server.
oct 03 07:35:07 raspberrypi apache2[8669]: Reloading web server: apache2.
oct 03 07:35:07 raspberrypi systemd[1]: Reloaded LSB: Apache2 web server.
oct 03 07:35:09 raspberrypi apache2[8726]: Stopping web server: apache2.

Warning: Unit file changed on disk, 'systemctl daemon-reload' recommended.
Hint: Some lines were ellipsized, use -l to show in full.
En error.log en el directorio /var/log/apache2/error.log encontré esto:

Código: Seleccionar todo

[Tue Oct 03 07:35:09.471283 2017] [core:notice] [pid 1250] AH00060: seg fault or similar nasty error 
 detected in the parent process

Donde podría encontrar un detalle mas completo?

Hay forma de forzar el inicio cuando se detiene por medio de algún script.ssh con cron?

Gracias de antemano!
Avatar de Usuario
egrueda
Pi God
Pi God
Mensajes: 3426
Registrado: 10 Feb 2017, 19:31
Agradecido: 7 veces
Agradecimiento recibido: 269 veces

Ejecuta un

Código: Seleccionar todo

sudo systemctl start apache2
Y si te falla, envíanos el error_log entero (no seas bruto, usa https://pastebin.com/)
luquio escribió:Hay forma de forzar el inicio cuando se detiene por medio de algún script.ssh con cron?
Si, se especifica desde el mismo /lib/systemd/system/apache2.service.d, pero es importante ver qué falla para arreglarlo.
Responder