Configuration of PHP.ini
One: The D:/software directory under the Php-5.2.1-win32.zip copy to the D-Packing directory decompression-renamed to: PHP (folder permissions to add users permissions)
Two: Open d:/php to copy php.ini-dist or php.ini-recommended to c:windows directory
⑴ found Php.ini_dist file, renamed to PHP.ini.
and the C-disk renamed to PHP.ini, the general official release of the website of the server with Php.ini-dist, and as a debugging server with php.ini-recommended better.
⑵ Open php.ini, Find extension_dir= "./" and change it to
Extension_dir= "D:phpext" (depends on the document in the version)
⑶ remove the semicolon before the following file
Extension=php_gd2.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_zip.dll
Extension=php_mbstring.dll
Extension=php_mcrypt.dll
⑷upload_max_filesize = 2M (maximum file upload capacity limit (modified as needed, attention unit)
Change to 8M
⑸ copies the modified php.ini file to the C:windows directory and copies Php5ts.dll, Libmysql.dll, libmcrypt.dll files under d:php to the C:windowssystem32 directory .
⑹ Open iis-Web site-right key properties-Home Directory-configuration-map-Add (Executable-point to PHP directory php5isapi.dll file-extension. php). PHP, limited to Get,head,post,trace. Option-Enable parent path tick!
Add a new Web service in the ⑺web service extension, add the path (extension:. PHP---Add-preview-point to the Php5isapi.dll file in the PHP directory), below-set the extension status to allow. Add language support index.php completion in document
⑻ Test PHP Probe: A: Add Wwwroot folder to E disk-Create a new text document under folder-Rename to index.php
B: Open the index.php file (opened in Notepad) and copy the following code into it.
phpinfo ();
?>
C: Open iis-Web Site-right-new Web site-Description: php-IP address to server IP next-preview (point to the newly created Wwwroot folder, next)-permission settings: Read and Run script next-Finish
D: The new site-right-preview observation can not open! There is a display on the other hand OK check the above steps!