Home > Backend Development > PHP Tutorial > Install and configure PHP development environment under Windows IIS environment_PHP tutorial

Install and configure PHP development environment under Windows IIS environment_PHP tutorial

WBOY
Release: 2016-07-13 17:29:36
Original
1124 people have browsed it

1. First, decompress the php compressed package (here, PHP4.3.2 is taken as an example) to the C:php-4.3.2-Win32 directory, and then find a file called php.ini-recommended from it and put it Renamed php.ini.

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

3. Copy the modified php.ini file to the C:winnt directory, and 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 you want to support PHP, open the properties page, click the "ISAPI Filter" tab, click "Add", and click "Add" in the pop-up "Filter Properties" window. Fill in "php" in "Filter Name"; fill in "C:php-4.3.2-Win32sapiphp4isapi.dll" in "Executable File" (as shown in Figure 1), and click OK.

5. Click the "Home Directory" tab, select the "Configuration" button in "Application Settings", click the "Add" button in the pop-up "Application Configuration" window, and click the "Add/Edit Application" in the pop-up In the "Program Extension Mapping" window, fill in "C:php-4.3.2-Win32sapiphp4isapi.dll" in "Executable File", and fill in "php" in "Extension Name". (As shown in Figure 2).

OK, everything is done, restart IIS, write a phpinfo in your page file directory, and test whether the PHP file can be parsed correctly. If a 500 error occurs, make sure you didn't forget step three.

Figure 1

Figure 2

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/531663.htmlTechArticle1. First, unzip the php compressed package (here, PHP4.3.2 is taken as an example) to C:php-4.3 .2-Win32 directory, and then find a file called php.ini-recommended from it, and rename it to php.ini. ...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template