Windows下Apache2.4+php5.6環境搭建

來源:互聯網
上載者:User

標籤: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環境搭建

相關文章

聯繫我們

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