Php-5.3.8 installation experience

Source: Internet
Author: User
Today reinstalled the win2003 system on the virtual machine, reconfigure the PHP service program, found that the original version has been updated, according to The http://bbs.xtdqwx.cn/viewthread.php? Tid = 42 & extra = Page % 3d1 the above operations in this tutorial are not feasible, so I found another method for installation:

Due to the new special effects and improvements of php5.3, the original ISAPI parsing PHP script is not supported. php starts to use Microsoft's FastCGI mode in Versions later than 5.3.0, which is a more advanced method, faster and more stable!

1.
The new version of php5.3 cannot be installed on IIS by using the old method. Now, a tutorial is provided to install php5.3 and later versions on IIS.
First, download and install IIS FastCGI, http://www.iis.net/1521/ItemPermalink.ashx
Select "x86", "or" Download x86 ", and the downloaded name is" fcgisetup_1.5_rtw_x86.msi ".
Download PHP under IIS, http://windows.php.net/download/, (note IIS to select the version of vc9) decompress to the desired directory, the directory needs to give the user read run permission, find PHP installation directory under PHP. ini-Development and renamed it PHP. INI file, find the following

[Date]
; Defines the default timezone used by the date functions
Http://php.net/date.timezone
Date. timezone = PRC
If you do not change the above date. timezone, the error 500 may be displayed on the webpage (I changed it directly, so I didn't see this error. Thank you for your exploration !)
Find
; On Windows:
; Extension_dir = "Ext"
Change

; On Windows:
Extension_dir = "E: \ PhP5 \ Ext"

The directory depends on your own situation.

Modify MYSQL as follows:

Find the following three files and remove the Semicolon ";".
; Extension = php_mysql.dll
; Extension = php_gd2.dll
; Extension = php_mbstring.dll
Copy libmysql. dll in the bin directory under the MySQL installation directory to the "C: \ WINDOWS \ System32" directory;
Copy "php_gd2.dll" and "php_msql.dll" under the php-5.3.1 \ ext directory to the "C: \ WINDOWS \ System32" directory.

2.
Right-click "default website"
Click "add" and "executable files" in "application configuration", and select c: \ windows \ system32 \ inetsrv \ fcgiext. dll.
Extension file name:. php

If it cannot be added, it is because you have not stopped the website.
3.

Open the FastCGI configuration file c: \ windows \ system32 \ inetsrv \ fcgiext. ini and change it to this style in [Types ].
[Types]
PHP = PHP
[PHP]
Exepath = E: \ PhP5 \ php-cgi.exe

Add index. php to the default IIS document and restart IIS to create a new index. php file on the website.
Index. php
<? PHP
Phpinfo ();
?>

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.