Installation of Windows PHP
1. Windows PHP
1.1. Install PHP
(1) Download PHP free version php 5.2.9 zip package with address http://cn2.php.net/downloads.php
(2) Unzip the file, in the extracted directory, there are two files, respectively, "Php.ini-dist" and "php.ini-recommended",
Php.ini-dist is suitable for development use;
Php.ini-recommended has a high security settings, suitable for on-line when the product use;
Select one according to the situation, copy and rename to PHP.ini, and place any.
1.2. Modify the Apache httpd.conf configuration file to add the following:
LoadModule php5_module [PHP decompression path]/php5apache2_2.dllphpinidir [php.ini directory]addtype application/x-httpd-php. php
1.3. Add MySQL support:
(1) The Extension=php_mysql.dll of the php.ini file is removed from the comments in this line;
(2) php.ini file Extension_dir This line is modified to: Extension_dir = "[PHP Installation path]/ext";
(3) Copy the Libmysql.dll file to the C:/windows directory;
1.4. Add Xdebug Support:
(1) Download Xdebug DLL file (example: Php_xdebug-2.0.4-5.2.8.dll), and put it in the "[PHP Installation path]/ext" directory;
(2) Modify the php.ini file, add the following at the end of the file:
[Xdebug]zend_extension_ts = "[PHP Installation path]/ext/php_xdebug-2.0.4-5.2.8.dll" xdebug.remote_enable=1xdebug.remote_host= 127.0.0.1xdebug.remote_port=9000xdebug.remote_handler=dbgpxdebug.profiler_enable=1xdebug.profiler_output_dir= " [PHP Installation path]/xdebug]