Build the PHP Runtime environment in IIS (8.0) in Windows 8:
One: Install the IIS server
1. Go to Control Panel >> programs and features >> turn Windows features on or off, find Internet Information Services, and remember to select the CGI
2. After the installation is complete, open localhost in the browser to see if you can display the IIS Welcome page:
Two: Download Install configuration PHP Environment
1, download PHP, official website address: http://windows.php.net/download/,
2, the download Zip compressed package extracted to the D-disk, after decompression for E:\php;
3. Go to Control Panel >> Management tool >>internet Information Services (IIS) Manager;
4, the middle window select "Handler mapping" double-click, and then the rightmost select "Add Module mapping"
5. "Executable" in the column to find the PHP installation directory E:\php, the lower right corner of the file type to "EXE" can see "php-cgi.exe" file appears
6. You can then add default documents to the Web site: default.php and index.php.
The following configuration is also needed:
7. Enter the E:\php directory, rename the file php.ini-development renamed to PHP.ini and copy to the desktop;
8. The following need to modify the desktop php.ini file,
After opening the php.ini file, use the shortcut key Ctrl+f search Date.timezone Modify the current time zone to date.timezone= "Asia/shanghai"
Activate the extension options you need, the semicolon ";" before the corresponding DLL statement. Delete
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_pdo_mysql.dll
Then search extension_dir= to modify it to Extension_dir = "E:\php\ext\", modify and check it, save it, and then cut this php.ini file on the desktop to C # Windows directory can be (why do not directly copy the file here to modify it, because Windows 8 involves permissions issues, so first copy to the desktop modification, of course, can also be placed in other directory modification)
9.php environment configuration, we can test, in the establishment of the site directory to create a new index.php file (note is index.php, not index.php.txt), the content is "<?php phpinfo (); > ", then open" localhost "in the browser, you can see a similar interface like the following
PS1: (in the command line into the PHP installation directory, enter the "php-m" command to view the DLL extensions that are turned on)
ps2:php Web site development without MySQL database, about the MySQL database environment configuration installation diagram See here.
Windows 8 IIS configuration PHP Runtime environment