Estou tentando iniciar o httpd, mas só aparece '[FAILED]'. Agora instalei o exim, mas não funcionou, então desinstalei. Mas então o servidor web não funcionou mais! Eu tentei /etc/init.d/httpd start
, mas dá '[FAILED]' sem motivo. O que posso fazer para começar?
httpd -e debug
dá:
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module auth_basic_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module auth_digest_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authn_file_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authn_alias_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authn_anon_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authn_dbm_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authn_default_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_host_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_user_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_owner_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_groupfile_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_dbm_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authz_default_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module ldap_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module authnz_ldap_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module include_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module log_config_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module logio_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module env_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module ext_filter_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module mime_magic_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module expires_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module deflate_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module headers_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module usertrack_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module setenvif_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module mime_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module dav_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module status_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module autoindex_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module info_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module dav_fs_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module vhost_alias_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module negotiation_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module dir_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module actions_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module speling_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module userdir_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module alias_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module rewrite_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_balancer_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_ftp_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_http_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_connect_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module cache_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module suexec_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module disk_cache_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module file_cache_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module mem_cache_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module cgi_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module version_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module ssl_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module fcgid_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module perl_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module php5_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module proxy_ajp_module
[Wed Nov 23 11:47:25 2011] [debug] mod_so.c(246): loaded module python_module
Atenciosamente, Kevin
Responder1
Eu tentaria isso primeiro:
killall -9 httpd; /etc/init.d/httpd start
Se isso falhar, eu seguiria o log de erros e reiniciaria o httpd:
tail -f /etc/httpd/logs/error_log &; /etc/init.d/httpd start
Além disso, certifique-se de que nada esteja escutando na porta: 80 com:
netstat -ntlp | grep :80
Se algum outro procs tiver a porta, você pode matar esse pid. Se você ver
No space left on device
No arquivo de log e você tiver espaço em disco, talvez seja necessário limpar os semáforos e reiniciar o httpd com:
ipcs -s | grep nobody | gawk '{ print $2 }' | xargs -n 1 ipcrm sem && /etc/init.d/httpd start
Outra coisa, poderia haver logs maiores que 2 GB. Geralmente você verá um erro em seus registros indicando isso.