First modify the Apache configuration file, let Apache support parsing PHP files, Apache configuration file in the Apache installation directory of the Conf directory httpd.conf, open this file, find #loadmodule, add below this
LoadModule php5_module "e:/apache group/php/php5apache2_2.dll" Phpinidir "e:/apachegroup/php" AddType application/x-httpd-php. php. phtml
Bold section for your own PHP directory
- 2
and find it in the httpd.conf configuration file.
DirectoryIndex index.html
Switch
DirectoryIndex index.php index.html
The bold section indicates that the default first access index.php
- 3 (can be omitted)
Modify the Apache Site directory and find it in the httpd.conf configuration file.
DocumentRoot "E:/apache Group/apache2.2/htdocs"
Switch
DocumentRoot "E:/apache group/php"
Find it again.
<directory "E:/apache Group/apache2.2/htdocs" >
Switch
<directory "E:/apache group/php" >
END
Configure PHP
First rename the php.ini-development to PHP.ini, as the PHP configuration file, open this configuration file
Set the specific directory for the PHP extension package to find
; On Windows:; Extension_dir = "ext"
Change to (value is the directory of Ext folder)
; On windows:extension_dir = "E:/apache group/php/ext"
Set the time zone to find
;d Ate.timezone =
Switch
Date.timezone = Asia/shanghai
- &NBSP;
configuration completed to detect the success of the configuration. Restart Apache, create a new file index.php under the Site directory (E:/apache group/php), enter : <?php phpinfo (); ?>
- 4
Open the browser input http://localhost, display the following content, the installation is successful
Integrated apache+php Tutorials