Install and configure the PHP development environment in Windows IIS

Source: Internet
Author: User
Tags php development environment

First, the php compressed package (PHP4.3.2 here for example) decompress to C: php-4.3.2-Win32 directory, and then find a named php. ini-recommended file, rename it php. ini.

2. open the file and find extension_dir = ". /", change it to extension_dir =" C: php-4.3.2-Win32extensions "; then find the session. save_path =/tmp and change it to session. save_path = C: php-4.3.2-Win32sessions. (Note: Now you need to create the sessions folder under the C: php-4.3.2-Win32 directory to store the session.)

3. Copy the modified php. ini file to the C: winnt directory, copy the php4ts. dll file under C: php-4.3.2-Win32 to the C: winntsystem32 directory.

4. Open "Internet Service Manager", select the site that you want to support PHP, open the properties page, click the "ISAPI filter" tab, and click "add ", fill in "php" in the "Filter Name" in the pop-up "Filter Properties" window; fill in "C: php-4.3.2-Win32sapiphp4isapi.dll" (1) in "executable files", and click OK.

5. Click the "main directory" tab and select "configuration" in "application settings". In the displayed "application configuration" window, click "add, in the displayed "Add/edit application extension ing" window, enter "C: php-4.3.2-Win32sapiphp4isapi.dll" in the executable file, and "extension" in the "php" field ". (2 ).

OK. Restart IIS and write a phpinfo file under your page file directory to test whether the PHP file can be correctly parsed. If a 500 error occurs, make sure you have not forgotten step 3.

 

Figure 1

 

Figure 2

 

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.