Tools:
php5.5.6 Download Link: http://windows.php.net/download/#php-5.5
Recommended V11 x64, which is 64bit (if 32-bit system, please download the corresponding 32-bit)
apache2.4, download Link: http://www.apachelounge.com/download/
Also recommended v11,64 bit (if 32-bit system, please download the corresponding 32-bit)
V11, download Link: http://www.microsoft.com/zh-CN/download/details.aspx?id=30679
First,php5.5.6 configuration
Unzip the downloaded PHP, in the D Disk new folder PHP, the extracted files are all copied to d:\php\.
Add;D to the System environment variable path: \php;d:\php\ext, after reboot takes effect
Second,Apache2.4 configuration
Unzip the downloaded Apache archive and copy it to d:\Apache24\.
Then there are several places to change the rice
1. Modify the D:\Apache24\conf\httpd.conf.
Change the ServerRoot line to ServerRoot "D:\Apache24", where your Apache is placed between the double quotes
2. Modify the D:\Apache24\conf\httpd.conf.
Modify the DocumentRoot as follows:
DocumentRoot "D:/apache24/htdocs"
<directory "D:/apache24/htdocs" >
Modify the Listen port to: Listen 8080
3. Add the following lines to increase support for PHP5:
# PHP5 Support
LoadModule Php5_module D:/php/php5apache2_4.dll
AddType application/x-httpd-php. php. html. htm
# Configure the path to PHP.ini
Phpinidir "d:/php"
4. Save the httpd.conf and restart the Apache service.
Tips: d:\apache24\bin\httpd.exe-k Install, this sentence can add Apache to the system services.
Third, the last
Open 127.0.0.1:8080 in the browser, is not able to see it works, this shows that your Apache has been working.
Modify D:\Apache24\htdocs\index.html, add <?php phpinfo (), save.
Open 127.0.0.1:8080 in the browser, do not see the relevant content of phpinfo, congratulations, your PHP has been working with Apache!
Precautions
-
Don't forget to install V11
-
Please note your PHP and Apache paths, and be careful to modify the contents of the httpd.conf.
-
php5.5, only with the 2.4 version of Apache, if you are using the mainstream version 2.2 or other, please upgrade to 2.4 version
php5.5 + apache2.4 Installation configuration