First, PHP download installation: Php-5.6.1-win32-vc11-x64.zip. Decompression, Operation:
1, copy php.ini-production, renamed to PHP.ini
2, at the end of the environment variable path add: D:\programming\php-5.6.1-win32-vc11-x64;d:\programming\php-5.6.1-win32-vc11-x64\ext;
3. Common extension Settings:
A. Open php.ini
Will Extension_dir = "ext" modified to Extension_dir = "ext" (remove the semicolon in front of extension)
Change the Extension=php_mbstring.dll to Extension=php_mbstring.dll (remove the semicolon in front of the extension, which is the PHP multibyte string extension)
Change the Extension=php_mysql.dll to Extension=php_mysql.dll (remove the semicolon in front of the extension)
Change the Extension=php_mysqli.dll to Extension=php_mysqli.dll (remove the semicolon in front of the extension)
Second, Apache download installation. Look for binaries, inside the MSI format file. Httpd-2.2.25-win32-x86-openssl-0.9.8y.msi. Configuration:
1, A, modify D:\Apache2.2\conf\httpd.conf
B, change serverroot this line to ServerRoot "D:\Apache2.2"
C, change the DocumentRoot according to the following content:
D, DocumentRoot "D:\Apache2.2\htdocs"
E, remove #servername www.example.com:80 in front of the #
F, <directory "D:\Apache2.2\htdocs" >
G, find DirectoryIndex index.html, modify to DirectoryIndex index.html index.php index.htm
H, find scriptalias/cgi-bin/"c:/apache24/cgi-bin/", Change to scriptalias/cgi-bin/"F:/phptools/apache2.4/apache24/cgi-bin" (if same, do not change)
I, find <directory "C:/apache24/cgi-bin" > Modify to <directory "f:/phptools/apache2.4/apache24/cgi-bin/" > (If Same, Don't change it.)
J, add a few lines at the end to increase support for PHP5:
# PHP5 Support
LoadModule Php5_module D:\programming\php-5.6.1-Win32-VC11-x64\php5apache2_4.dll
AddType application/x-httpd-php. php. html. htm
# Configure the path to PHP.ini
Phpinidir "D:\programming\php-5.6.1-Win32-VC11-x64"
Tip: D:\apache24\bin\httpd.exe-k Install, this sentence can add Apache to the system service
3.
PHP Environment Setup