Download the appropriate PHP APACHE Musql
Configure Apache First
1. Change Apache configuration widget (D:\PHP\Apache\conf\httpd.conf)
2. Modification of the place:
ServerRoot "D:/myphp2017/apache/apache24"
DocumentRoot "D:/myphp2017/apache/apache24/htdocs"
<directory "D:/myphp2017/apache/apache24/htdocs" >
scriptalias/cgi-bin/"D:/myphp2017/apache/apache24/cgi-bin"
<directory "D:/myphp2017/apache/apache24/cgi-bin" >
#php的通用设置
LoadModule php7_module "D:/myphp2017/php/php7.0.23/php7apache2_4.dll"
Phpinidir "d:/myphp2017/php/php7.0.23"
AddType application/x-httpd-php . php . html
-------------------------------------------------
PHP Configuration
Specify the PHP configuration file path
3. Add phpinidir "D:/PHP/PHP5" to set up php config file directory (first make sure PHP in the PHP installation directory .) Inidevelopment renamed to php.ini)
4. Restart Apache
5. Verify that PHP is installed successfully
Here we create a phpinfo.php file under the D:\PHP\Apache\htdocs directory to enter the following content
[PHP] view plain copy print?
- <?php
- Phpinfo ();
- ?>
Then open the browser input http://localhost/phpinfo.php, the default is 80 port, if not 80 port localhost after the port number must be added, if the installation is successful, then open the PHP related information page, otherwise check the relevant directory is installed correctly
6. Install the MySQL service, run the MySQL installation file directly, follow the steps to perform the installation operation
5 Add Mysql module
1. in the PHP5 directory , find LibMysql.dll or php_mysql.dll and php_mysqli.dll copy to C in the Ext directory disk under Windows directory
2. Open the PHP configuration file
1. Remove extension=php_mysql.dll and extension=php_mysqli.dll front semicolon
2. Set the extension path extension_dir= "d:/php/php5/ext" in php. INI
3. Restart Apache
4. Revisit the phpinfo.php page in the browser, if the page information is more than the MySQL and mysqli column indicates that the module was added successfully, otherwise recheck the above steps
Verify that MySQL is
Configure PHP Apache Msql