windows安裝apache系統中無apache2服務解決方案

NO IMAGE

複製程式碼 程式碼如下:
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

您可能感興趣的文章:

windows下apache php mysql 環境配置方法Windows下Apache應用環境塔建方法Windows下Apache應用環境塔建安全設定(目錄許可權設定)基於Windows下Apache PHP5.3.1安裝教程Apache php Mysql在Windows下配置環境步驟說明WINDOWS系統 Apache PHP5 Zend MySQL phpMyAdmin安裝配置方法WIN2003下安裝amp(apache mysql php phpmyadmin)環境apache在win2003下的安全設定(配合資料夾許可權目錄,很好很安全)