中国网管论坛's Archiver

hanyang0705 发表于 2006-12-25 17:16

如何在本机上使用Apache服务架设网站

我现在想在局域网内部架设一个apache的web server。请问如何架设?

我安装apache时,要求输入域名等信息。应该怎么填写?我直接添加我本机的IP地址:192.168.1.10

可是安装完apache以后,服务却无法启动,错误提示如下

请问到底是怎么回事?

木木 发表于 2006-12-26 18:34

80端口是否已被占用了,查寻下日志记录,应会有报错记录的

hanyang0705 发表于 2006-12-26 18:38

日志错误

Mon Dec 25 18:54:39 2006] [notice] Apache/2.2.3 (Win32) configured -- resuming normal operations
[Mon Dec 25 18:54:39 2006] [notice] Server built: Jul 27 2006 16:49:49
[Mon Dec 25 18:54:39 2006] [notice] Parent: Created child process 712
[Mon Dec 25 18:54:39 2006] [notice] Child 712: Child process is running
[Mon Dec 25 18:54:39 2006] [crit] (OS 10022)提供了一个无效的参数。  : Child 712: setup_inherited_listeners(), WSASocket failed to open the inherited socket.

hanyang0705 发表于 2006-12-26 18:41

这是在C:\Program Files\Apache Software Foundation\Apache2.2\conf下httpd.conf中的信息,我摘抄了其中涉及

IP地址的行

ServerName 192.168.1.26:80

# Redirect permanent /foo [url]http://192.168.1.26/bar[/url]

#ErrorDocument 402 [url]http://192.168.1.26/subscription_info.html[/url]

hanyang0705 发表于 2006-12-26 20:01

我重新安装Apache。但是Apache服务就是启动不了。总显示

"The requested operation has failed"错误。其它测试都通过了。不知道是什么原因。

点击启动也没有报错,打开apache-service Monitor查看,显示"The Apache2.2 service is starting"

但是实际情况是没有启动。就像我上面原贴里面的第一图样。第二个图样已经没有了。现在只省一个问题了就是

无法启动Apache。配置是按照网上的说法配置的,应该没有错。请高手指教呀。

我的局域网是DHCP动态划分的IP。跟这个有关系吗?

hanyang0705 发表于 2007-1-6 17:57

问题还没有解决。没有人回答我的问题吗?

hanyang0705 发表于 2007-1-9 17:17

没有高手能回答这个问题吗?真是郁闷呀。最近这两天太忙,也没有时间再调试,如果还没有答案的话,我就只能放弃了使用Apache系统了。唉

swzz 发表于 2007-2-21 08:55

我觉得还是直接用一个集成环境就行了,不用这么麻烦

free8729 发表于 2007-7-5 11:33

我也是这样的问题,期待解决

:(: :(:

页: [1]

Powered by Discuz! Archiver 6.1.0  © 1999-2008 bbs.bitsCN.com