It is relatively simple to configure PHP in Apache.
I. Software preparation: The following are the latest official versions as of May 20 ,.
PHP (5.0.4 ):Http://cn.php.net/get/php-5.0.4-Win32.zip/from/a/mirror
MySQL (4.1.11 ):Http://www.skycn.com/soft/1262.html
Http://dev.mysql.com/downloads/mysql/4.1.html
Zend Optimizer (2.5.7 ):Http://www.zend.com/store/free_download.php? Pid = 13
PhpMyAdmin (2.6.2 ):Http://www.skycn.com/soft/10687.html
Http://www.crsky.com/SoftView/SoftView_4190.html
Suppose C: The system disk of your current operating system. If your current operating system is not installed in C:, modify it on your own.
Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = Click here to open new windowCTRL + Mouse wheel to zoom in/out;} "border = 0>
Ii. install PHP:
(1), download to get the php-5.0.4-Win32.zip, decompress to C: Inetpubphp (this path can be arbitrary, but if you use this path below, Please modify the corresponding );
(2) Copy all dll files under the C: Inetpubphp directory (mainly DLL files under C: Inetpubphp C: Inetpubphpext) to c: Windowssystem32, overwrite existing dll files;
Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = Click here to open new windowCTRL + Mouse wheel to zoom in/out ;} "border = 0 pop =" Click here to open new window CTRL + Mouse wheel to zoom in/out "resized =" true ">
Screen. width * 0.7) {this. resized = true; this. width = screen. width * 0.7; this. alt = Click here to open new windowCTRL + Mouse wheel to zoom in/out ;} "border = 0 pop =" Click here to open new window CTRL + Mouse wheel to zoom in/out "resized =" true ">
(3) set php.exe‑php-win.exe and php. copy the ini-dist files to C: Windows (C: WINNT in Windows 2000) and C: Windowsphp. ini-dist is renamed as php. ini, open it with notepad, and use the search function of notepad to search
, Change Off to On;
Search again
And direct the path to the extensions directory under your PHP Directory, for example, extension_dir = "C: Inetpubphpext ";
Search found
List
|
|
; Extension = php_dbase.dll |
|
Optional
|
|
; Extension = php_gd2.dll |
|
This is used to support the GD library. It is generally required.
|
|
; Extension = php_ldap.dll |
|
Optional
|
|
; Extension = php_mbstring.dll |
|
If you do not select PHPMYADMIN, a red prompt is displayed. Therefore, it is required.
|
|
; Extension = php_mssql.dll |
|
This is used to support MSSQL. Optional.
|
|
; Extension = php_mysql.dll |
|
This is used to support MYSQL. It is required to support MYSQL.
Remove the previous ";". You can also remove the previous one if you need it. Then, close and save the file.
Example of the PHP. ini file after my configuration is successful:
Http://xqin.com/iis/php