Modular installation on a Windows system using Apache2.2 PHP5.3
PHP5.3 adds some features, such as namespace, static late binding, and so on.
1
Download php5.3 and apache2.2
php5.3 must download VC6, VC9 can not use Apache, only with IIS
2
Unzip the package to d:\php, or unzip the directory of other disks.
Installing apache2.2
3 Configuring php5.3
Rename the Php.ini-development file to php.ini under the d:\php directory
This is a change in PHP 5.3, and the other file php.ini-production is a typical configuration for product operation.
We then open the php.ini file, defining the path to the extension package.
Look for "extension_dir" and modify it to:
Extension_dir = "D:\php\ext"
Then, we open some necessary extension packages, that is, to remove some extension package file name of the semicolon, the following author's configuration:
Extension=php_curl.dll
Extension=php_gd2.dll
Extension=php_mbstring.dll
Extension=php_mysql.dll
Extension=php_mysqli.dll
Extension=php_pdo_mysql.dll
Extension=php_xmlrpc.dll
4 Configuring Apache2.2
Open the Apache httpd.conf file and add the default home page:
DirectoryIndex index.php index.html
In 126 rows or so, the last addition of LoadModule:
LoadModule php5_module "D:/php/php5apache2_2.dll"
AddType application/x-httpd-php. php
Phpinidir "d:/php"
5 Testing
Create a new index.php in the Apache Htdocs directory
Input content:
Phpinfo ();
?>
Then restart Apache2. Enter http://localhost to access