服务器之家:专注于服务器技术及软件下载分享
分类导航

云服务器|WEB服务器|FTP服务器|邮件服务器|虚拟主机|服务器安全|DNS服务器|服务器知识|Nginx|IIS|Tomcat|

服务器之家 - 服务器技术 - WEB服务器 - windows安装apache系统中无apache2服务解决方案

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

2021-03-29 01:04服务器之家 WEB服务器

一直都是用WIN开发PHP,今天有用户反映SHUGUANG CMS在APACHE+PHP中不能正常运行,只好自己机器配置个环境测试,遇到点小问题,搜索相关资料,终于解决

复制代码 代码如下:


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

延伸 · 阅读

精彩推荐