Build the PHP Runtime environment in IIS (8.0) of Windows 8:
One: Install the IIS server
1. Access to Control Panel >> programs and features >> turn Windows features on or off to find Internet Information Services, remember to select the CGI
2. When the installation is complete, open localhost in the browser to see if you can display the Welcome page for IIS:
Two: Download installation configuration PHP environment
1, download PHP, website address: http://windows.php.net/download/,
2, will download the ZIP compression package to D disk, decompression after the E:\php;
3, Access to Control Panel >> management tools >>internet Information Services (IIS) Manager;
4, middle window select "Handler mapping" double click, then rightmost select "Add Module mapping"
5. "Executable" column found in the PHP installation directory E:\php, the lower right corner of the file type to "EXE" can see the "Php-cgi.exe" file appears
6. You can then add default documents to your Web site: default.php and index.php.
The following configuration is also performed:
7. Enter the E:\php directory, rename the file php.ini-development renamed 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 Data.timezone Modify to Data.timezone= "Asia/shanghai" to modify the current time zone
Activate the extension option you need, and 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
Re-search extension_dir= to modify it to Extension_dir = "E:\php\ext\", modify and check after the save, and then the desktop of this php.ini file cut to C:\ Windows directory can (why not directly copy the file here to modify it, because Windows 8 involves permission issues, so first copy to the desktop modification, of course, can also be placed in other directory changes)
9.php environment Configuration Well, we can test, in the established site directory to create a new index.php file (note is index.php, not index.php.txt), content for "<?php phpinfo ();? >, and then open "localhost" in the browser to appear similar to the following interface
PS1: (Enter the PHP installation directory at the command line, enter the "php-m" command to view the open DLL extension module)
ps2:php website development words without MySQL database, about MySQL database environment configuration installation diagram See here.
Author: Fantasy Zerow