程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 網頁編程 >> PHP編程 >> 關於PHP編程 >> Windows安裝Apache2.4和PHP5.6,apache2.4php5.6

Windows安裝Apache2.4和PHP5.6,apache2.4php5.6

編輯:關於PHP編程

Windows安裝Apache2.4和PHP5.6,apache2.4php5.6



VC11 下載安裝
http://www.microsoft.com/en-us/download/details.aspx?id=30679

=================

PHP(5.6) VC11 x86 Thread Safe
php-5.6.4-Win32-VC11-x86.zip

下載地址:http://windows.php.net/download/

解壓並建立php.ini文件

=================

Apache(2.4)
httpd-2.4.10-win32-VC11.zip

下載地址:http://www.apachelounge.com/download/
手冊下載:http://mirror.bit.edu.cn/apache/httpd/docs/

解壓,示例目錄(E:/WAMP)

修改主配置文件:conf/http.conf

ServerRoot "E:/WAMP/Apache"
ServerName desktop
DocumentRoot "E:/WWW"
<Directory "E:/WWW">
DirectoryIndex index.html index.php
<Directory "E:/WAMP/Apache/cgi-bin">
Include conf/extra/httpd-vhosts.conf

#關聯PHP
LoadModule php5_module E:/WAMP/PHP/php5apache2_4.dll
AddType application/x-httpd-php .php
PHPIniDir "E:/WAMP/PHP"

修改虛擬主機配置文件:conf/extra/httpd-vhosts.conf

<VirtualHost *:80>
  ServerName desktop
  DocumentRoot "C:/Users/Administrator/Desktop"
  <Directory "C:/Users/Administrator/Desktop">
    Options Indexes FollowSymLinks
    AllowOverride FileInfo
  </Directory>
</VirtualHost>

 

添加系統服務:httpd.exe -k install -n "Apache24"
卸載系統服務:httpd.exe -k uninstall -n "Apache24"

 

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved