Php5.3.8 is configured first from the official php website www. php. netdownloads. php downloads the PHP5.3.87zippackage package for windows. 1) decompress the PHP zip package to a directory, such as "E: PHP"; 2) decompress the PHP Directory (E: PHP) php. rename the ini-production file to php. I php5.3.8 configuration
First download the windows version of php 5.3.87zip package from the official PHP website http://www.php.net/downloads.php
1) decompress the PHP zip package to a directory, for example, "E: \ PHP ";
2) convert PHP under the PHP Directory (E: \ php. rename the ini-production file to php. ini, PHP configuration file is it, modify the following places, after modifying the php. copy the ini file to the C: \ WINDOWS \ directory:
Extension_dir = "E: \ PHP \ ext", pointing to the path where the "php _ *. dll" file is placed in the php folder.
Doc_root = "E: \ appach2.2 \ php", home page location set by apache;
Default_charset = "gb2312", modify the default character set. here, if there is a semicolon ";" in front, remove this semicolon;
Change register_globals = Off to register_globals = On to make the passed global variable valid;
Extension = php_gd2.dll if there is a semicolon in front, cancel the semicolon, the same as below;
Extension = php_mbstring.dll
Extension = php_myslqi.dll
Extension = php_mysql.dll is used to connect to the MYSQL database;
3) copy the php5ts. dll file under the PHP directory to the C: \ WINDOWS \ system32 directory.
4) modify the httpd. conf file of Apache. Add the following two lines at the end of the file to install PHP in the module mode to enter Apache:
LoadModule php5_module E:/PHP/php5apache2_2.dll
AddType application/x-httpd-php. php
Finally, edit the Path in the environment variable and add "; E: \ PHP \ ext"
Add the system environment variable PHPRC and the variable is "E: \ PHP"
Create the index. php file and write the following code:
Phpinfo ();
?>
Enter http: // 127.0.0.1/or http: // localhost/in the address bar of your browser, and you will see the php version information.