Seven Steps to teach you windows under php5.4 installation

Source: Internet
Author: User
Tags vc9

1, first PHP from 5.2 has been modified to fastcgi mode installation, so install the latest version of the php5.4 need to install fastcgi,fastcgi the following:


Http://www.iisboy.com/iis_down/552.html


Run the installation directly after download


2. Download the latest PHP code


: http://windows.php.net/download/


Download non-thread-safe, can download the corresponding version according to the actual needs


3, want to run php5.4 need VC9 run library, as follows


http://www.microsoft.com/downloads/zh-cn/details.aspx?displaylang=zh-cn&FamilyID= 9b2da534-3e03-4391-8a4d-074b9f2bc1bf

Run the installation directly after download



4, unzip the downloaded Php-5.4.0-nts-win32-vc9-x86.zip file, and put it in any location such as: D:\PHP5


Modify one of the php.ini-development to PHP.ini


5. Modify the php.ini file as follows:


; On Windows:


Extension_dir = "D:/php5/ext"


(remove the preceding semicolon)


Extension=php_curl.dll


Extension=php_gd2.dll


Extension=php_gettext.dll


Extension=php_mbstring.dll


Extension=php_exif.dll


Extension=php_mysql.dll


Extension=php_pdo_mysql.dll


Extension=php_xmlrpc.dll


Extension=php_zip.dll


Fastcgi.impersonate = 1



6. Modify the Fcgiext.ini file


This file appears in the following directory after the first step of installation: C:\WINDOWS\system32\inetsrv


Add the following code at the end of the Fcgiext.ini file


[Types]


php=php


[PHP]


Exepath=d:\php5\php-cgi.exe


instancemaxrequests=10000


activitytimeout=300


requesttimeout=600


Environmentvars=php_fcgi_max_requests:10000,phprc:d:\php5\


Get it done.

Seven Steps to teach you windows under php5.4 installation

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.