Environment: Window 7, apache/2.2.19 (WIN32) php/5.2.9-1
1. Configure the server name
Remove the #ServerName localhost:80 comments from the inside.
Re-run the Apache service.
The http://localhost:80 can then be accessed through a browser, which means that Apache has been installed and started successfully if the page is displayed.
2. Add PHP Support
1 |
LoadModule php5_module "D:/php-5.2.9/php5apache2_2.dll"
|
Add the following location
AddType application/x-httpd-php. php. php5. PhP4. php3. phtml. Phpt
AddType Application/x-httpd-php-source. Phps
3. Add PHP.ini Directory
1 |
PHPIniDir "D:/php-5.2.9" PHP 路径
|
4. Update php.ini file
Php.ini-development change to php.ini under PHP
5. Test test.php
Add test.php under Apache Htdocs
The above describes the configuration of Apache support PHP5, including the apache,php5 aspects of the content, I hope the PHP tutorial interested in a friend helpful.