Home >Backend Development >PHP Tutorial >Apache php mysql environment configuration method under windows, apachemysql_PHP tutorial
Preparation
1 Download apache http://httpd.apache.org/download .cgi#apache24 httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
openssl means it comes with openssl module. Openssl can be used to configure 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 version
VC6: legacy Visual Studio 6 compiler , compiled using this compiler.
VC9: the Visual Studio 2008 compiler is compiled with Microsoft's VS editor.
3 Download mysql http://mysql.llarian.net/Downloads/MySQL-5.5/mysql-5.5.23-winx64.msi
Second installation
1 apache is relatively simple, all the way to next is completed.
Browser verification, the following page appears, successful
2 php installation
Download the zip package, extract it directly to a directory, and rename the directory to php
3 mysql
Omitted
Three configurations
php configuration
php.ini-development file is renamed to php.ini
Specify the specific directory of the PHP extension package in order to call the corresponding DLL file
was changed to
Remove the following configuration comments and support mysql
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
Add under #LoadModule vhost_alias_module modules/mod_vhost_alias.so
Web home directory modification
changed to
Copy codeThe code is as follows:
changed to
Copy codeThe code is as follows:
changed to
Restart apache
mysql configuration
Omitted
Four tests
Create phpweb directory D: serversphpweb
Create test file index.php
Browse: http://localhost
The following information is displayed, indicating that the configuration is successful:
Create mysql connection test file
Copy codeThe code is as follows: