欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  网络运营

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

程序员文章站 2022-11-18 20:06:31
复制代码 代码如下: microsoft windows [版本 5.2.3790] (c) 版权所有 1985-2003 microsoft corp. c:\docum...
复制代码 代码如下:

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