[CentOS-es] Apache se bloquea

Miguel González miguel_3_gonzalez en yahoo.es
Lun Ago 14 17:23:23 UTC 2017


Y la pregunta es, has probado a cambiar en logrotate como indicas de
http reload a httpd restart?

Saludos

Miguel


On 08/14/17 7:19 PM, Roberto Bermúdez wrote:
> Estimado Luis, hasta el momento no he tenido la oprtunidad de instalar
> Centos 7, pero hasta el centos 6 habia la configuración de tareas
> programadas con crontab -e, no se si en centos 7 fue reeplazado o sigue
> igual pero  ¿hasta encontrar la solución a tu problema no sería conveniente
> que puedas programar una tarea para que reinicie el apache automaticamente
> cada semana?
> 
> Solo es una idea temporal
> 
> Saludos cordiales
> 
> 2017-08-14 10:41 GMT-05:00 Luis T <reywes en gmail.com>:
> 
>> 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
>> _______________________________________________
>> CentOS-es mailing list
>> CentOS-es en centos.org
>> https://lists.centos.org/mailman/listinfo/centos-es
>>
> _______________________________________________
> CentOS-es mailing list
> CentOS-es en centos.org
> https://lists.centos.org/mailman/listinfo/centos-es
> 



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