Не запускается сервис httpd

lol100

Постоялец
Регистрация
9 Авг 2008
Сообщения
110
Реакции
56
Стоит на серваке апач и нджинкс с панелью исп менеджер, после ребута нгинкс запускается а хттпд нет, через панель в разделе сервисы так же не запускается, приходится врубать его руками через консоль service httpd start после этого врубается, как сделать что бы грузился сразу?
 
  • Заблокирован
  • #2
Поставить на автозагрузку

для центоса как пример:
Для добавлении сервиса в автозагрузку ОС CentOS/RHEL, сущеcтвует служба chkconfig
  • chkconfig –list <имя службы>
  • chkconfig –add <имя службы>
  • chkconfig –del <имя службы>
  • chkconfig [--level levels] <имя службы> <on|off|reset>
  • chkconfig [--level levels] <имя службы>

# chkconfig –list httpd (проверяем включен ли в автозагрузку httpd)
httpd 0:выкл 1:выкл 2:выкл 3:выкл 4:выкл 5:выкл 6:выкл
# chkconfig –level 35 httpd on (включаем на уровень исполнения 3 и 5)
# chkconfig –list httpd (проверяем)
httpd 0:выкл 1:выкл 2:выкл 3:вкл 4:выкл 5:вкл 6:выкл
# chkconfig –level 35 httpd off (выключаем службу)
# chkconfig –del httpd (удаляем службу)
# chkconfig –list httpd
(проверяем, и видим ошибку и просьбу добавить службу)
# chkconfig –add httpd (добавляем службу в автозагрузку)
 
все выставлено как указано у вас, но он все равно не запускается, только руками
 
Где именно глянуть, var/logs/httpd?
 
а можно узнать ось на которой сервак крутится?
 
Cent OS 6 64 yf OpenVZ, работало все нормально раньше все запускалось, но сработал лимит на файлы rfile вроде или как то так в апаче я его в Limits.conf увеличил, но после этого когда ребутиш сервак, запускается все кроме нгинкса, странно что через консоль запускается нормально, хотя в панельке ISP команда запуска та же
 
error_log

Код:
Unable to open logs
Unable to open logs
[Tue Apr 23 21:34:24 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Apr 23 21:34:25 2013] [notice] Digest: generating secret for digest authentication ...
[Tue Apr 23 21:34:25 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Tue Apr 23 21:34:25 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 14:47:10 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 14:47:10 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 14:47:10 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 14:47:10 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 14:57:00 2013] [error] server reached MaxClients setting, consider raising the MaxClients setting
[Wed Apr 24 18:11:19 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 18:11:19 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 18:11:19 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 18:11:19 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 18:11:55 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 18:11:55 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 18:11:55 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 18:11:55 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 18:12:23 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 18:12:23 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 18:12:23 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 18:12:23 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 18:12:52 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 18:12:53 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 18:12:53 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 18:12:53 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Wed Apr 24 18:13:19 2013] [notice] Graceful restart requested, doing restart
[Wed Apr 24 18:13:19 2013] [notice] Digest: generating secret for digest authentication ...
[Wed Apr 24 18:13:19 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Wed Apr 24 18:13:19 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Apr 25 03:06:49 2013] [notice] Graceful restart requested, doing restart
[Thu Apr 25 03:06:49 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 25 03:06:49 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 25 03:06:49 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Apr 25 03:31:28 2013] [notice] Graceful restart requested, doing restart
[Thu Apr 25 03:31:29 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 25 03:31:29 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 25 03:31:29 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Apr 25 03:44:19 2013] [notice] Graceful restart requested, doing restart
[Thu Apr 25 03:44:20 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 25 03:44:20 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 25 03:44:20 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Apr 25 03:51:11 2013] [notice] Graceful restart requested, doing restart
[Thu Apr 25 03:51:11 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 25 03:51:11 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 25 03:51:11 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Thu Apr 25 22:04:47 2013] [notice] caught SIGTERM, shutting down
Unable to open logs
[Thu Apr 25 22:05:44 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Apr 25 22:05:44 2013] [notice] Digest: generating secret for digest authentication ...
[Thu Apr 25 22:05:44 2013] [notice] Digest: done
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/module.so' - /usr/lib64/php/modules/module.so: cannot open shared object file: No such file or directory in Unknown on line 0
[Thu Apr 25 22:05:44 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 configured -- resuming normal operations
[Fri Apr 26 00:02:22 2013] [error] server reached MaxClients setting, consider raising the MaxClients setting
 
Интересно, после чего перестало работать?! возможна проблема с mcrypt...
попробуйте сделать так:

открываем и редактируем
/etc/php.d/mcrypt.ini
;Enable mcrypt extension module
;extension=module.so
extension=mcrypt.so
 
Назад
Сверху