For the first time to write a blog and some piano Shang feel, think on the excitement.
Back to the chase:
Operating Environment: Environment: WIN10 32. (64-bit equivalent, download the relevant software must be the corresponding 64-bit version)
Version requirement: PHP5.5.15 (Php-5.5.15-win32-vc11-x86.zip)
Apache2.4.10 (Httpd-2.4.10-win32-vc11.zip)
MySQL5.6.20 (Mysql-5.6.20-win32.zip)
Resource path:
Pre-installation required: Because PHP is based on the C language evolved from, so need to install VC + + URL for http://www.microsoft.com/en-us/download/details.aspx?id= 30679, select the English version, if the WIN10 system is 64-bit please download vsu_4\vcredist_x64.exe, download page see
Apache2.4.10 (httpd-2.4.10-win32-vc11.zip) Website: http://www.apachelounge.com/download/
PHP5.5.15 (php-5.5.15-win32-vc11-x86.zip) Here we choose is a thread-safe version, about the difference between the thread-safe version and non-thread-safe version of the Internet access to the relevant information, download URL: http://windows.php.net /DOWNLOAD/,VC11 x86 thread safe is a 32-bit secure version
MySQL5.6.20 (mysql-5.6.20-win32.zip), url: http://dev.mysql.com/downloads/mysql/, this is a free-to-install version
Installation Steps (1) Installation:
Install VC11, double-click to open, click on a number of next steps until the installation is successful OK
Apache download is a ZIP package, decompression to put in the appropriate location on it, not recommended in the C-disk, because the reload system C disk data will be lost, here we put it in the F-Disk Phptools folder under the apache2.4 directory
PHP after download is also a zip package, the same decompression to the appropriate location, we also put it in the F-Disk Phptools folder under the php5.5 directory
MySQL chose the free installation version of the more simple, the same is extracted to the appropriate location, here we also put it in the F-Disk Phptools folder under the MySQL directory, decompression after installation as
Installation Steps (2) configuration:
Php:
Copy the F:\phptools\php5.5\php.ini-production and rename it to php.ini;
Add F:\phptools\php5.5 and F:\phptools\php5.5\ext to the environment variable path, select Computer, right-click Properties--Advanced system settings--environment variables--system variables, find path, edit, to be added thereafter; F:\phptools\php5.5; F:\phptools \php5.5\ext,
Apche:
Open F:\phptools\Apache2.4\Apache24\conf with Notepad
Find ServerRoot, modify ServerRoot "C:/apache24" + ServerRoot "F:/phptools/apache2.4/apache24" (Here you enter the location after unpacking the Apache installation package) ; find
#ServerName www.example.com:80, modify to ServerName www.example.com:80 (remove the previous #)
Find DocumentRoot "C:/apache24/htdocs", modify to DocumentRoot "F:/phptools/apache2.4/apache24/htdocs" (if same, do not change)
Find <directory "C:/apache24/htdocs" >, modify to <directory "F:/phptools/apache2.4/apache24/htdocs" > (if same, do not change)
Find DirectoryIndex index.html, modified to DirectoryIndex index.html index.php index.htm (Here we have added index.php index.htm)
Find scriptalias/cgi-bin/"c:/apache24/cgi-bin/" and modify it to scriptalias/cgi-bin/"F:/phptools/apache2.4/apache24/cgi-bin" ( If same, do not change)
Find <directory "C:/apache24/cgi-bin" > Modify to <directory "f:/phptools/apache2.4/apache24/cgi-bin/" > (If Same, Don't change it.)
Add LoadModule php5_module "F:/phptools/php5.5/php5apache2_4.dll" to the last line in F:\phptools\apache2.4.10\conf\httpd.conf Apache Support PHP (please confirm f:/phptools/php5.5/has php5apache2_4.dll, if you download is I provide the connection must be there)
Add AddType application/x-httpd-php. php. html. htm
Add Phpinidir "f:/phptools/php5.5" (Tell Apache PHP.ini location) At this point, httpd.conf configuration is complete, save httpd.conf.
To install Apche on the server:
Enter Command mode: Input F:\phptools\Apache2.4\Apache24\bin\httpd-k install, enter
Open a few common PHP extensions
Open F:\phptools\php5.5\php.ini with Notepad
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)
Start Apche;
PHP Environment Configuration