安装了apache2,指定的启动命令是: /usr/local/apache2/bin/apachectl start
我在终端里面以root用户运行是没有问题的,进程里面有4个http相关进程
but在webmin里面的apache里面电机启动apache的时候却提示:启动apache失败 : Apache does not appear to be running :
点第二次的时候提示:
启动apache失败 : Apache does not appear to be running :
httpd (pid 10085) already running
手工在终端启动:
derek@love:/usr/local/apache2/bin> sudo /usr/local/apache2/bin/apachectl start
口令:
derek@love:/usr/local/apache2/bin>
derek@love:/usr/local/apache2/bin>
derek@love:/usr/local/apache2/bin> ps -ef |grep httpd
root 10178 1 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 10179 10178 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 10180 10178 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 10181 10178 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 10185 10178 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
daemon 10186 10178 0 20:41 ? 00:00:00 /usr/local/apache2/bin/httpd -k start
derek 10194 9708 0 20:41 pts/1 00:00:00 grep httpd
derek@love:/usr/local/apache2/bin>
似乎是没有问题哈?用浏览器打开也没有问题。。不过有点奇怪的就是 即使我关闭apache,浏览器还是能够打开。
=附上错误日志=======================
derek@love:/usr/local/apache2/logs> more error_log
[Sun Jan 13 19:53:02 2008] [notice] Apache/2.2.6 (Unix) configured -- resuming n
ormal operations
[Sun Jan 13 20:15:08 2008] [error] [client 127.0.0.1] File does not exist: /usr/
local/apache2/htdocs/favicon.ico
[Sun Jan 13 20:16:59 2008] [error] [client 127.0.0.1] File does not exist: /usr/
local/apache2/htdocs/favicon.ico
[Sun Jan 13 20:21:17 2008] [notice] caught SIGTERM, shutting down
[Sun Jan 13 20:21:17 2008] [notice] Apache/2.2.6 (Unix) configured -- resuming n
ormal operations
[Sun Jan 13 20:21:33 2008] [error] [client 192.168.18.2] File does not exist: /u
sr/local/apache2/htdocs/favicon.ico
[Sun Jan 13 20:23:57 2008] [notice] caught SIGTERM, shutting down
[Sun Jan 13 20:24:13 2008] [notice] Apache/2.2.6 (Unix) configured -- resuming n
ormal operations
[Sun Jan 13 20:24:55 2008] [error] [client 192.168.18.2] File does not exist: /u
sr/local/apache2/htdocs/favicon.ico
[Sun Jan 13 20:27:15 2008] [notice] caught SIGTERM, shutting down
[Sun Jan 13 20:27:15 2008] [notice] Apache/2.2.6 (Unix) configured -- resuming n
ormal operations
[Sun Jan 13 20:27:31 2008] [error] [client 192.168.18.2] File does not exist: /u
sr/local/apache2/htdocs/favicon.ico
[Sun Jan 13 20:28:43 2008] [notice] caught SIGTERM, shutting down
[Sun Jan 13 20:31:37 2008] [notice] Apache/2.2.6 (Unix) configured -- resuming n
ormal operations
derek@love:/usr/local/apache2/logs>


robertmaggie 于 2008-01-14 15:14:22发表:
已经提示的很清楚了File does not exist: /u
sr/local/apache2/htdocs/favicon.ico
找到该文件