xiaozhengzi
论坛版主
论坛版主
  • 注册日期2011-07-12
  • 发帖数756
  • QQ
  • 火币1840枚
  • 粉丝93
  • 关注1
  • 特殊贡献奖
阅读:3613回复:0

win7安装wamp server,Apache服务不能正常启动

楼主#
更多 发布于:2011-11-23 22:52
因为要学习php,今天在windows 7 professional下安装了wamp server,结果Apache服务不能正常启动。

测试80端口,结果发现如下结果:


既然IIS已经占用80端口,要么就将IIS的端口改为其他端口,要么就将Apache的端口改为其他。

这里我选择将Apache的端口改为8080.

图片:113_3558_1ef53ccddde3921.jpg

图片:113_3558_0ba10169e9f55fc.jpg






然后再httpd.conf中将监听端口改为8080,如下:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 8080

然后将ServerName的端口也改为8080,如下:

#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
#
ServerName localhost:8080



现在可以启动Apache服务了。启动后在浏览器的地址栏中输入http://localhost:8080/index.php

就可以看到WampServer的配置信息了。



喜欢0 评分0
游客

返回顶部