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

來源:互聯網
上載者:User

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

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.