Home > Article > Backend Development > Apache2.4+PHP5.6+MySQL5.6 integrated configuration
H1.APACHE Installation
HTTP.CONF files under the Apache24conf folder to modify:
(1) Modify the root path of ServerRoot Apache
The default is the Serverroot "C:/Apache24", and the modification is: Serverroot "D" D :/phpEnv/Apache24"
(that is, the folder where you unzipped it)
(2) Modify ServerName to your host name
Apache24" ServerNamewww.example.com :80 Remove the # in front. This attribute is needed when starting Apache from the command line. (3) Modify the main folder directory accessed by DocumentRoot Apache (that is, the path location where php and html code files are placed)
The default path of Apache is under htdocs (D: phpEnvApache24htdocs), inside There will be a simple entry file index.html. This path can be modified by yourself, You can configure it in my own new folder, and configure it in the httpconf file to the new folder DocumentRoot "c:/Apache24/htdocs"
:/Apache24/HTDOCS "& GT; Modification to: DocumentRoot" d: phpenvwww " & lt; dia" d: phpenvwww "& gt; (4) Modify the entrance file configuration: DirectoryIndex The entrance of index.php, index.html, index.htm as the web project & lt; iFmoduleDir_module & GT; ; IfModuleDir_module & GT; Directoryindex Index. pHP index.htm index.html & lt;/iFmodule & GT; (5) Set the directory of Serverscript Scriptalias/CGI-BIN/"C:/Apache24/CGI-BIN/" to = & gt; AS/ cgi-bin/ "D:/phpEnv/Apache24/cgi-bin" " granted < /Directory> ; Require all granted ) Test Apache Environment a Start-run, enter CMD, open the command prompt. Then enter the D:phpEnvApache24bin directory and press Enter httpd and press Enter If no error is reported, you can test it (keep the command window open). Access the index.html file in the DocumentRoot Apache folder. If "it works" appears, the service is installed and started correctly. ’ s to's ’ ’s ’ s ’ s off t t t through out together down to s s s --n-n-wnwww . 2. PHP5.6 installation 1. Copy the php.ini-development file in the directory and rename it to php.ini. It is the configuration file of php 2. Add php support to the Apache service "
AddType application/x-httpd -php .php .phtml
3. Restart service
date.timezone =
date. ;" and change extension_dir ="D:phpEnvphpext" to turn on php extension support(the ext folder contains files that support many php extensions).
Remove the ";" in front of the following lines
Restart the service to support the mysql database. The above introduces the integrated configuration of Apache2.4+PHP5.6+MySQL5.6, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.