php5.3.8 Configuration
First download the PHP 5.3.87zip package for Windows version from the official PHP website http://www.php.net/downloads.php
1), unzip the PHP compressed package zip into a directory, such as "E:\PHP";
2), the Php.ini-production file under the PHP directory (E:\PHP) renamed to php.ini,php configuration file is it, modify the following several places, modify the php.ini file to copy to the C:\WINDOWS\ directory:
Extension_dir= "E:\PHP\ext", pointing to the path of the "Php_*.dll" file placed under the PHP folder.
Doc_root= "E:\appach2.2\php", Apache set the home position;
Default_charset= "gb2312", modify the default character set, here, if preceded by a semicolon ";", remove the semicolon;
The Register_globals=off is changed to Register_globals=on, making the transitive global variable valid;
Extension=php_gd2.dll If there is a semicolon in front, remove the semicolon to the same;
Extension=php_mbstring.dll
Extension=php_myslqi.dll
Extension=php_mysql.dll is used to connect MySQL database;
3) Copy the Php5ts.dll file from the PHP directory to the C:\WINDOWS\system32 directory.
4), and finally modify the Apache httpd.conf file. Add the following 2 lines at the end of the file to indicate that PHP is installed as a module into Apache:
LoadModule Php5_module E:/php/php5apache2_2.dll
AddType application/x-httpd-php. php
Finally, edit the path in the environment variable, plus "; E:\PHP; E:\PHP\ext "
Add system environment variable PHPRC, variable = "E:\PHP"
New file index.php, write the following code:
Phpinfo ();
?>
Enter HTTP://127.0.0.1/or http://localhost/in the browser's address bar and you will see the PHP version information.