Preparations
1 download apache http://httpd.apache.org/download.cgi#apache24 httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
Openssl indicates that the openssl module is included. You can use openssl to configure an SSL Secure link for Apache.
2 download php http://windows.php.net/downloads/releases/archives/ php-5.3.5-Win32-VC6-x86.zip
Download vc6
VC6: legacy Visual Studio 6 compiler, which is compiled using this compiler.
VC9: the Visual Studio 2008 compiler is compiled using Microsoft's VS editor.
3. Download mysql http://mysql.llarian.net/Downloads/MySQL-5.5/mysql-5.5.23-winx64.msi
Installation 2
1. apache is relatively simple. It can be completed one by one.
Browser verification. The page appears. The verification succeeds.
2 php installation
Download the zip package and decompress it to a directory. Rename the directory to php.
3 mysql
Omitted
Three configurations
Php configuration
Rename the php. ini-development file to php. ini.
Specify the directory of the PHP extension package to call the corresponding DLL fileCopy codeThe Code is as follows:; Directory in which the loadable extensions (modules) reside.
Http://php.net/extension-dir
; Extension_dir = "./"
; On windows:
; Extension_dir = "ext"
ChangeCopy codeThe Code is as follows:; Directory in which the loadable extensions (modules) reside.
Http://php.net/extension-dir
; Extension_dir = "./"
; On windows:
Extension_dir = "D:/servers/php/ext"
Remove the following configuration notes to support mysqlCopy codeThe Code is as follows: extension = php_curl.dll
Extension = php_gd2.dll
Extension = php_mysql.dll
Extension = php_pdo_mysql.dll
Extension = php_pdo_odbc.dll
Support session
Session. save_path = "e:/temp"
Upload File directory Configuration
Upload_tmp_dir = "e:/temp"
Time zone Configuration
Date. timezone = Asia/Shanghai
Apache configuration
Under # LoadModule vhost_alias_module modules/mod_vhost_alias.so, addCopy codeThe Code is as follows: LoadModule php5_module "e:/servers/php/php5apache2_2.dll"
PHPIniDir "e:/servers/php"
AddType application/x-httpd-php. php. html. htm
Modify the web home directoryCopy codeThe Code is as follows: DocumentRoot "D:/servers/Apache2.2/htdocs"
ChangeCopy codeThe Code is as follows: DocumentRoot "D:/servers/phpweb"
Copy codeThe Code is as follows: <Directory "D:/servers/Apache2.2/htdocs">
ChangeCopy codeThe Code is as follows: <Directory "D:/phpweb">
Copy codeThe Code is as follows: <IfModule dir_module>
DirectoryIndex index.html
</IfModule>
ChangeCopy codeThe Code is as follows: <IfModule dir_module>
DirectoryIndex index. php index.html
</IfModule>
Restart apache
Mysql Configuration
Omitted
4. Test
Create the php web directory D: \ servers \ phpweb
Create a test file index. phpCopy codeThe Code is as follows: <? Php
Phpinfo ();
?>
Browse: http: // localhost
The following information is displayed, indicating that the configuration is successful:
Create a mysql connection test fileCopy codeThe Code is as follows: <? Php
$ Connect = mysql_connect ("10.71.196.147", "user ","");
If (! $ Connect) echo "Mysql Connect Error! ";
Else echo "mysql connection successful ";
Mysql_close ();
?>
Browse: http: // localhost/mysqltest. php test mysql connection