[CentOS-es] Apache se bloquea

Luis T reywes en gmail.com
Lun Ago 14 15:41:34 UTC 2017


Estimados,

Tengo un sitio web desarrollado con PHP 7.1 en Centos 7 pero el Apache se
bloquea los fines de semana y tengo que reiniciar el Apache para ponerlo
operativo siempre. Buscando en internet encontre que hay que hacer un
cambio en el siguiente archivo:

Replace ' httpd reload ' with ' httpd restart ' in /etc/logrotate.d/httpd
file.

En los logs del servidor tengo lo siguiente:

tail -f /var/log/messages-20170814
Aug 14 03:01:01 sitio systemd: Starting user-0.slice.
Aug 14 03:01:01 sitio systemd: Started Session 338 of user root.
Aug 14 03:01:01 sitio systemd: Starting Session 338 of user root.
Aug 14 03:41:01 sitio systemd: Reloaded The Apache HTTP Server.
Aug 14 03:41:01 sitio systemd: httpd.service: main process exited,
code=killed, status=11/SEGV
Aug 14 03:41:01 sitio kill: kill: cannot find process ""
Aug 14 03:41:01 sitio systemd: httpd.service: control process exited,
code=exited status=1
Aug 14 03:41:01 sitio systemd: Unit httpd.service entered failed state.
Aug 14 03:41:01 sitio systemd: httpd.service failed.
Aug 14 03:41:01 sitio rsyslogd: [origin software="rsyslogd"
swVersion="7.4.7" x-pid="989" x-info="http://www.rsyslog.com"] rsyslogd was
HUPed

 tail -f /var/log/httpd/error_log-20170814
[Sun Aug 06 03:40:01.506139 2017] [core:notice] [pid 997] AH00060: seg
fault or similar nasty error detected in the parent process
[Mon Aug 07 08:50:26.375806 2017] [core:notice] [pid 5901] SELinux policy
enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Aug 07 08:50:26.377821 2017] [suexec:notice] [pid 5901] AH01232:
suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Aug 07 08:50:26.425190 2017] [auth_digest:notice] [pid 5901] AH01757:
generating secret for digest authentication ...
[Mon Aug 07 08:50:26.426592 2017] [lbmethod_heartbeat:notice] [pid 5901]
AH02282: No slotmem from mod_heartmonitor
PHP Warning:  PHP Startup: Unable to load dynamic library
'/usr/lib64/php/modules/pdo_sqlsrv.so' -
/usr/lib64/php/modules/pdo_sqlsrv.so: undefined symbol:
php_pdo_register_driver in Unknown on line 0
[Mon Aug 07 08:50:26.487765 2017] [core:warn] [pid 5901] AH00098: pid file
/run/httpd/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Mon Aug 07 08:50:26.503852 2017] [mpm_prefork:notice] [pid 5901] AH00163:
Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips PHP/7.1.6 configured -- resuming
normal operations
[Mon Aug 07 08:50:26.503904 2017] [core:notice] [pid 5901] AH00094: Command
line: '/usr/sbin/httpd -D FOREGROUND'
[Mon Aug 14 03:41:01.476123 2017] [mpm_prefork:notice] [pid 5901] AH00171:
Graceful restart requested, doing restart

Alguien ha tenido un problema similiar, cualquier ayuda de antemano muchas
gracias.


Saludos,

Luis


Más información sobre la lista de distribución CentOS-es