当前位置: 移动技术网 > 网络运营>服务器>Linux > windows安装apache系统中无apache2服务解决方案

windows安装apache系统中无apache2服务解决方案

2019年05月06日  | 移动技术网网络运营  | 我要评论
复制代码 代码如下:

microsoft windows [版本 5.2.3790]
(c) 版权所有 1985-2003 microsoft corp.

c:\documents and settings\administrator>cd c:\program files\apache software foun
dation\apache2.2\bin

c:\program files\apache software foundation\apache2.2\bin>cmd /k httpd.exe -k in
stall -n apache2
installing the apache2 service
the apache2 service is successfully installed.
testing httpd.conf....
errors reported here must be corrected before the service can be started.
(os 10048)通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 : make_sock: c
ould not bind to address 0.0.0.0:8080
no listening sockets available, shutting down
unable to open logs

c:\program files\apache software foundation\apache2.2\bin>
c:\program files\apache software foundation\apache2.2\bin>cmd /k httpd.exe -k in
stall -n apache2
[sat feb 21 18:36:41 2009] [error] apache2: service is already installed.

c:\program files\apache software foundation\apache2.2\bin>

配置
httpd.conf
增加
复制代码 代码如下:

loadmodule php5_module c:/php/php5apache2_2.dll
addtype application/x-httpd-php .php
addtype application/x-httpd-php .html
addtype application/x-httpd-php-source .phps
addtype application/x-httpd-php .htm

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网