Php5.4 for Apache; PHP 5.4.0 installation process, method, and configuration; apache2.2 supports php5.4 Configuration
1. Download and decompress
: Http://windows.php.net/download/
Download: vc9 x86 thread safe (21:16:12), zip version, otherwise there is no php5apache2_2.dll file.
Php5apache2_3.dll cannot be configured for the moment! No solution found yet ~ However, 5.4 comes with 2_2 and 2_3.
2. modify the configuration file
First back up the php. ini-development file, and then rename the original file as PHP. ini. Open PHP. ini and modify the following parameters:
(1), row 211: short_open_tag = on;
(2), row 215: asp_tags = on;
(3), 867 rows (if 868 rows are the start line of extension = **. dll), add a row, and note not to note the semicolon:
Extension_dir = "D: \ Program Files \ PHP 5.4 \ Ext"
(My PHP installation address is D: \ Program Files \ PHP 5.4 \. Please configure this item according to your actual situation)
(4) Remove the semicolon before the following DLL lines starting from line 1 to enable the function:
Extension = php_bz2.dll
Extension = php_gd2.dll
Extension = php_gettext.dll
Extension = php_mbstring.dll
Extension = php_mysql.dll
Extension = php_mysqli.dll
Extension = php_openssl.dll
Extension = php_pdo_mysql.dll
Extension = php_sockets.dll
Extension = php_xmlrpc.dll
Of course, you can copy and paste the above section directly, which is convenient and will not cause any problems. You can also save the original parameter form ~
If there are other requirements, just cancel the comment according to the actual situation.
(5), Row 3, set China Time Zone: Date. timezone = PRC;
(6) Save PHP. ini and copy it to c: \ windows.
3. Enable Apache to support php5.4
Open \ apache2.2 \ conf \ httpd. conf and edit:
(1) Add a row to 130 rows (the end of a bunch of loadmodule **. So rows:
Loadmodule php5_module "D: \ Program Files \ PHP 5.4 \ php5apache2_2.dll"
(My PHP installation address is D: \ Program Files \ PHP 5.4 \. Please configure this item according to your actual situation)
(2) Search for addtype and add the following information in the blank line of the last field:
Addtype application/X-httpd-PHP. php
Addtype application/X-httpd-PHP. php3
Addtype application/X-httpd-PHP. PhP4
Addtype application/X-httpd-PHP. PhP5
(3) Save and disable httpd. conf.
4. Copy an object
Copy:
(1) libeay32.dll, php5ts. dll, ssleay32.dll, and
(2) php_curl.dll and php_openssl.dll under D: \ Program Files \ PHP 5.4 \ ext;
To:
In the c: \ windows \ system32 file, this is to prevent some DLL files from being found.
5. Restart Apache
6. Test
Create a test. php file under \ apache2.2 \ htdocs and enter:
<? PHP phpinfo ();?>
Open your browser and enter http: // localhost/test. php.
7. Installation and Use of MySQL-5.5.23 on windows; simple MySQL tutorial