標籤:windows apache2.4 php5.6
php:http://windows.php.net/download/
擷取安裝包:httpd-2.4.23-win64-VC11.zip
apache:https://www.apachelounge.com/download/VC11/
擷取安裝包:php-5.6.27-Win32-VC11-x64.zip
apache啟動過程中出現丟失MSVCR110.dll錯誤資訊
650) this.width=650;" src="http://s4.51cto.com/wyfs02/M02/8D/1B/wKioL1iHTDaxPN69AAAxrpxiGsM068.png-wh_500x0-wm_3-wmp_4-s_3924661775.png" title="QQ20170124204044.png" alt="wKioL1iHTDaxPN69AAAxrpxiGsM068.png-wh_50" />
需要安裝一個微軟的V11組件,:http://www.microsoft.com/zh-CN/download/details.aspx?id=30679
我這裡是64位作業系統,所以下載VSU4\vcredist_x64.exe
C:\Users\liuzhen\Desktop\Apache24\conf\httpd.conf
將裡面預設的配置路徑統統改為你當前apache的目錄路徑
添加下面幾行,增加對php5的支援:
# php5 support
LoadModule php5_module D:/php/php5apache2_4.dll
AddType application/x-httpd-php .php .html .htm
# configure the path to php.ini
PHPIniDir "D:/php"
DirectoryIndex index.php index.html 加入index.php識別入口
php.ini 檔案注意點
On windows:
extension_dir = "C:/Users/liuzhen/Desktop/php-5.6.27-Win32-VC11-x64/ext"
short_open_tag = On 開啟
extension=php_mysql.dll 開啟
extension=php_mbstring.dll
<?php phpinfo()?>
用管理員身份運行
加入服務:httpd -k install -n Apache24
卸載服務:sc delete Apache24
本文出自 “劉振” 部落格,請務必保留此出處http://liuzhenlife.blog.51cto.com/10591893/1894121
Windows下Apache2.4+php5.6環境搭建