在线等,apache服务器不能启动。紧急求助!!!
昨天晚上访问apache服务的时候报503错误。今天早上来了把服务关了后就不能启动了。下面是日志详细信息,请大家帮我看看
以下是我httpd.conf的配置信息,大家看看有什么问题,已经去掉部分注释
[Tue Jan 06 11:04:44 2009] [error] (OS 10061)由于目标机器积极拒绝,无法连接。 : proxy: AJP: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
[Tue Jan 06 11:04:44 2009] [error] ap_proxy_connect_backend disabling worker for (127.0.0.1)
[Tue Jan 06 11:04:44 2009] [error] proxy: AJP: failed to make connection to backend: 127.0.0.1
[Tue Jan 06 11:04:44 2009] [error] proxy: AJP: disabled connection for (127.0.0.1)
[Tue Jan 06 11:09:12 2009] [error] (OS 10061)由于目标机器积极拒绝,无法连接。 : proxy: AJP: attempt to connect to 127.0.0.1:8009 (127.0.0.1) failed
以下是我httpd.conf的配置信息,大家看看有什么问题,已经去掉部分注释
# MaxRequestsPerChild: maximum number of requests a server process serves
ThreadsPerChild 500
MaxRequestsPerChild 10000
ServerRoot "E:/server/APMServ/Apache"
Listen 80
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
#LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
#LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule ssl_module modules/mod_ssl.so
LoadFile "E:/server/APMServ/PHP/libmysql.dll"
LoadModule php5_module "E:/server/APMServ/PHP/php5apache2_2.dll"
PHPIniDir "E:/server/APMServ/PHP/php.ini"
ServerAdmin webmaster@localhost
ServerName 127.0.0.1:80
DocumentRoot "E:/server/APMServ/www/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Satisfy all
</Directory>
<Directory "E:/server/APMServ/www/htdocs">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml default.shtml
</IfModule>
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
</FilesMatch>
ErrorLog logs/error.log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
# You need to enable mod_logio.c to use %I and %O
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "E:/server/APMServ/www/cgi-bin/"
</IfModule>
<Directory "E:/server/APMServ/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DefaultType text/plain
<IfModule mime_module>
TypesConfig conf/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .php
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
</IfModule>
Include conf/extra/httpd-mpm.conf
# Multi-language error messages
Include conf/extra/httpd-multilang-errordoc.conf
# Fancy directory listings
Include conf/extra/httpd-autoindex.conf
# Language settings
Include conf/extra/httpd-languages.conf
# User home directories
#Include conf/extra/httpd-userdir.conf
# Real-time info on requests and configuration
#Include conf/extra/httpd-info.conf
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
# Local access to the Apache HTTP Server Manual
#Include conf/extra/httpd-manual.conf
# Distributed authoring and versioning (WebDAV)
#Include conf/extra/httpd-dav.conf
# Various default settings
Include conf/extra/httpd-default.conf
# Secure (SSL/TLS) connections
Include conf/extra/httpd-ssl.conf
#Include conf/extra/httpd-vhosts-ssl.conf
#
# Note: The following must must be present to support
# starting without SSL on platforms with no /dev/random equivalent
# but a statically compiled-in mod_ssl.
#
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
#APMServ默认虚拟主机
NameVirtualHost *:80
<VirtualHost *:80>
ServerName *
DocumentRoot "E:/server/APMServ/www/htdocs"
<Directory "E:/server/APMServ/www/htdocs">
Options FollowSymLinks IncludesNOEXEC Indexes
DirectoryIndex index.html index.htm default.htm index.php default.php index.cgi default.cgi index.pl default.pl index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
#phpMyAdmin配置信息
Alias /phpmyadmin "E:/server/APMServ/www/phpMyAdmin"
<Directory "E:/server/APMServ/www/phpMyAdmin">
AllowOverride None
Options Indexes FollowSymLinks Includes
Order allow,deny
Allow from all
</Directory>
#APMServ配置ASP支持
ProxyPass /asp http://127.0.0.1:10322
ProxyPassReverse /asp/ http://127.0.0.1:10322/
#APMServ配置由可视化界面自动创建的虚拟主机,如需手工创建虚拟主机,请不要将代码放在vhost.conf文件内。
Include conf/apmserv/vhost.conf
Include conf/apmserv/vhost_ssl.conf
#APMServ配置由可视化界面自动创建的虚拟目录,如需手工创建虚拟目录,请不要将代码放在vdir.conf文件内。
Include conf/apmserv/vdir.conf
ProxyPass / ajp://127.0.0.1:8009/
fProxyPassReverse / ajp://127.0.0.1:8009/
...全文
相关推荐
apache启动不了的解决办法
apache启动不了的详细解决办法,包括apache启动不了的,apache能启动访问127.0.0.1 404错误的解决办法
apache server 不能成功启动
apache server service不能成功启动的错误提示
Windows系统下Apache服务器无法启动的问题解决
关于apache无法启动主要是80端口的问题,下面我们来看一下关于端口被占的处理办法 解决方案:1:在dos下运行netstat -ano 2:在xampp control panel中点setup打开命令界面, 3:选择6 enable mob_perl 4:重新启动xampp,此时运行http://localhost就应该正常工作了 第三种情况是网上一些网友遇到的问题: 与端口绑定时出现问题,未绑定到需要的端口 这是你可以根据error.log中的提示,退出占用端口的程序,这样应该能启用apache。 不过启动那些程序可能又会出错 解决方案:
Apache 本地服务器启动后又自动停止解决办法
setup_inherited_listeners(), WSASocket failed to open the inherited socket
80端口被Pid为4的未知程序占用导致Apache不能启动的解决方法
主要介绍了80端口被Pid为4的未知程序占用导致Apache不能启动的解决方法,比较奇怪的是这个PID为4的程序在进程中找不到,后来发现原来是一个服务在占用,需要的朋友可以参考下


