Often in the Linux environment to build PHP environment, under windows or for the first time, no technical content, is to record, save the next time you have to find everywhere. From Binkery technology blog, http://www.binkery.com/archives/471.html
http://windows.php.net/download/#php-5.5
http://www.apachelounge.com/download/
http://www.microsoft.com/zh-CN/download/details.aspx?id=30679 from Binkery technology blog, http://www.binkery.com/archives/471.html
V11 is a component of Microsoft, if not installed, it will prompt Msvcr110.dll lost. From Binkery technology blog, http://www.binkery.com/archives/471.html
After downloading, install V11, unzip Apache and PHP into the directory you want. From Binkery technology blog, http://www.binkery.com/archives/471.html
Configure PHP Configuration
PHP needs to configure environment variables. Put X:\php; X:\php\ext added to PATH. From Binkery technology blog, http://www.binkery.com/archives/471.html
APACHE Configuration
Modify the X:\Apache24\conf\httpd.conf file. From Binkery technology blog, http://www.binkery.com/archives/471.html
Need to be modified: from Binkery technology blog, http://www.binkery.com/archives/471.html
ServerRoot "X:\Apache24"DocumentRoot "X:/Apache24/htdocs"<Directory "X:/Apache24/htdocs">Listen 8080ServerName localhost:8080
Need to add: from Binkery technology blog, http://www.binkery.com/archives/471.html
# php5 supportLoadModule php5_module X:/php/php5apache2_4.dllAddType application/x-httpd-php .php .html .htm# configure the path to php.iniPHPIniDir "X:/php"
Configure Apache, configure the environment variables, install the V11, and then you may need to restart the computer. From Binkery technology blog, http://www.binkery.com/archives/471.html
Launch Apache
X:\Apache24\bin\httpd.exe -k install/start/stop/restart
Verify the Apache server is successful, enter 127.0.0.1:8080 directly in the address bar, if you can open the Web page, the Apache is successful. Verify that PHP is configured successfully, create a new PHP file such as php.php, enter the Binkery technology blog, http://www.binkery.com/archives/471.html
<?php phpinfo(); ?>
In the X:\Apache24\htdocs directory, and then open the 127.0.0.1:8080/php.php with your browser. From Binkery technology blog, http://www.binkery.com/archives/471.html
Windows Apache PHP Environment setup