PHP version: http://windows.php.net/download/download the thread safe zip version. Originally, vc9 was dedicated to IIS and vc6 to other servers such as Apache. However, it seems that vc9 can also be set to Apache: middleware (x86, 32-bit), MSI installerwindows (x86, 64-bit), MSI plugin) httpd-2.2.22-w In32-x86-openssl-0.9.8t.msimysql-5.5.28-win32.msi in the d disk custom new folder apacheserver and then in the apacheserver folder respectively create PHP, Apache, MySQL, Web Four folders respectively used to store PHP, Apache, MySQL, project Directory PHP: decompress all downloaded PHP files in the root directory of the compressed package to D: \ Users, right? PHP. change ini-Dist to PhP. INI) There are two similar files, one is Php. ini-development, one is Php. ini-production: one is suitable for development and the other is suitable for project release. Therefore, modify the PHP. Ini-development file 2, open PHP. extension_dir = "Ext" (php-5.2.17-win32-vc6-x86.zip is extension_dir = ". /") Remove the previous one and change it to extension_dir =" D:/apacheserver/PHP/EXT "3. Then, let PHP support MySQL and find it; extension = php_mysql.dll: remove the previous; number. 4. (If you want to use XP, you can use mysql_connect () and other methods, and use libmysql in the PHP Directory. DLL to c: \ windows \ system32) Apache: install Apache. Set localhost to both nextnetwork domain and servername. Administrator's email address: enter your mailbox port option. Select the first option to set port 80 for all users, and the second option to set port 8080 for manual start by the current user. If port 80 is set by default, you can choose next for typical installation (custom m). The next installation directory is set to D: \ apacheserver \ apache \ installation input http: // localhost/it works is displayed on the page! Indicates that the installation is successful. Next, modify httpd. conf configuration file httpd. conf: 1 in the conf folder under the Apache installation directory. Add # Load PHP processing module loadmodule php5_module "d in the last line of a large loadmodule loading module configuration: /apacheserver/PHP/php5apache2_2.dll "# addtype application/X-httpd-PHP. PHP # specify the PHP compiling directory phpinidir "D:/apacheserver/PHP". In the first sentence, load the DLL file of the Apache version of PHP. If php5apache2_2.dll cannot be found in the PHP installation package, in this case, the PHP version is incorrect. Then, the second sentence is to add PHP and other suffixes, indicating that When apache receives the Content Header, It is application/X-httpd-PHP or suffix. PHP files will be handed over to phpinid In this way, we can use Apache to compile PHP files. Now PHP and Apache are associated with 2. Modify the directory of the project to store Apache. The default directory of the project is in the htdocs folder under the Apache installation directory, which can be changed to the directory you want to specify, specify D: \ apacheserver \ WEB. Therefore, find and change DocumentRoot "D:/apacheserver/Apache/htdocs" to DocumentRoot "D: /apacheserver/Web "and <directory" D:/apacheserver/Apache/htdocs "> change to <directory" D:/apacheserver/Web "> MYSQL: select custom for MySQL installation to select the installation directory. In the Select installation content dialog box, click MySQL server settings installation directory in D: \ apacheserver \ mysql click server data files to set the data storage directory where the data directory is located at D: \ apachese Rver \ mysql continues the next step. After you select the start setting Wizard to complete the installation, the setting box will pop up and select detailed configuration to set standard configuration in detail. If the next step is only for the Web database, we recommend that you select the second one. Select Server machine server developer Machine Development machine delicated MySQL server machine major MySQL Server next MySQL database usage select multifunctional database multi-function database transactional database only transactional database non-transactional database only databases without transactions next, set the InnoDB data storage location to D: \ apacheserver \ mysql \ InnoDB \ next select the number of concurrent connections of MySQL. The first option is the maximum number of 20 concurrent connections, the second option is the maximum number of 500 concurrent connections, and the last option is custom, you can select one based on your needs. Select the first demo .. next, select the port number of the MySQL service. The default port number is 3306, and both enable and enable check boxes are selected, enable strict mode to enable the precision mode. You do not need to select add firewall exception for this port to add the firewall to set the character set outside the column of this interface. Select manual selected default character set to manually select the default character set, set the character set to utf8 or gbkstandard character set standard character set to best support for multilingualism multi-language best support. Next, set MySQL to Windows Service, select install as windows serviceservice name, default MySQL select launch the MySQL server automatically start MySQL database. Inc is not selected. Lude bin directory in Windows path Directory includes in path next step set Root User Password select enable root access from remote machines enable remote machine access root others do not select create an anonymous account keep next PHP + Apache + MySQL Installation Complete phpMyAdmin download phpMyAdmin compressed package, select the zip version of All-supported ages. N = php_mysqli.dll to PHP support PNG, JPG, GIF, etc. (phpcmsv9 is required) Open extension = php_gd2.dll Large Character Set, support conversion between multiple character sets extension = php_mbstring.dllphp5 default <? PHP echo date ("Y-m-d h: I: s");?> Why is the difference between time and Beijing time eight hours (eight hours less? The Time Zone settings are added for the PhP5 series. The default value is Greenwich Mean Time, which is 8 hours different from the East 8 zone in China. Date. timezone = remove; and modify date. timezone = PRC edit error_reporting = e_all to error_reporting = e_all &~ Only e_notice errors (Notice) are reported! Make include and so on can contain outside web pages such as include_once "http://www.126.com"; find allow_url_include = off to change to allow_url_include = onhttpd. conf setting: Modify server access permissions here <directory "D:/apacheserver/Web">... allow from all (Change allow from 127.0.0.1 to allow from all) </directory> to access a folder in the address bar of listen 80 without specifying a page, index is read by default. add index to the end of directoryindex index.html on the PHP page. PHP returns directoryindex index.html index separated by spaces. phpmy. INI settings: After the database data storage location is changed, find my In the MySQL installation root directory. INI find datadir = "C:/Documents ents and settings/all users/Application Data /... "change its value to datadir =" D:/apacheserver/MySQL/data/"to copy all data in the data folder that originally stored data except MySQL to the specified folder, restart the computer or MySQL service to restart the MySQL service: Open the windows command string and enter net stop MySQL to stop the MySQL service. Net start MySQL to start the MySQL service.