Win7下php運行環境搭建

來源:互聯網
上載者:User
1.下載apache haus

下載地址:http://www.apachehaus.com/cgi-bin/download.plx

配置apache對php的支援。

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”

Install as a service

httpd -k install
httpd -k start
Other Command line options:
Stop Apache httpd -k stop
Restart Apache httpd -k restart
Uninstall Apache Service httpd -k uninstall
Test Config Syntax httpd -t
Version Details httpd -V
Command Line Options List httpd -h

2.php下載
http://windows.php.net/download/

解壓,修改php.ini-development為php.ini.
開啟php.ini,修改如下內容:
1)extension_dir = “ext”改為extension_dir = “C:\servers\php-5.6.13-Win32-VC11-x86\ext”

2)修改date.timezone =Asia/Shanghai

3)這些檔案前面的“;”去除
extension=php_curl.dll
extension=php_gd2.dll
extension=php_mbstring.dll
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_xmlrpc.dll

至此,win7下搭建php運行環境完成。後續會開始配置php串連mysql支援。

著作權聲明:本文為博主原創文章,未經博主允許不得轉載。

以上就介紹了Win7下php運行環境搭建,包括了方面的內容,希望對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.