windows 2008 安裝 apache + mysql + php

來源:互聯網
上載者:User

標籤:tar   post   load   apache   解決   down   清除   control   webserver   

下載準備

php : http://windows.php.net/downloads/releases/archives/

apache : https://www.apachehaus.com/cgi-bin/download.plx#APACHE24VC09

 

準備

e盤下建立檔案夾webServer用於存放php + apache + mysql 和 www 目錄

將下載的apache、php、mysql放到改目錄下

 

安裝apache

cmd視窗下e:cd webServer/Apache2.4/binhttpd -k  install

配置apache

設定檔conf/httpd.conf# 定義常量Define SYSDIR "e:/webServer"Define SRVROOT "${SYSDIR}/Apache24"ServerRoot "${SRVROOT}"# 定義網站目錄DocumentRoot "${SYSDIR}/www"<Directory "${SYSDIR}/www">  

碰到問題80連接埠,443連接埠佔用問題

清除NT Kernel & System佔用80連接埠運行‘netstat -ano‘發現80連接埠被system佔用,進程號‘4‘轉到工作管理員上看pid對應的進程描述是NT kernel & system。解決方案:1.1運行‘regedit‘開啟註冊表。     1.2找到‘HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\HTTP‘右邊有一個‘start‘的DWORD的值將‘3’改為‘4’重啟即可。

  

 

小工具

查看所有連接埠佔用netstat -aon查看指定連接埠佔用netstat -aon|findstr "49157"

  

 

windows 2008 安裝 apache + mysql + php

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.