Windows most streamlined configuration step 1. Download and install PHP5, unzip directly, such as extract to d:/php5.6.9. (see Php5apache2_4.dll in the directory for apache2.4) 2. Download and install the Apache2 (
download a non-MSI-formatted installation package and install it through the cmd command line for easy troubleshooting of installation errors) (1) Run cmd press ENTER (2) to switch to the Apache root directory: such as CD C:\apache\bin press enter</div> (3) Input: Httpd-k Install Press Enter3. Modify the PHP configuration file php.ini (1) Set Short_open_tag = on to enable Apache to support PHP short label, that is <??>. (2) Set DATE.TIMEZONE=UTC setting time zone (3) setting to turn on MySQL
extension=php_mysql.dll (MySQL module, can access MySQL database after opening)
extension=php_mysqli.dll (MySQL module)4. Modify the Apache configuration file httpd.conf (1) Settings ServerRoot (2) Set PHP module Phpinidir "d:/php5.6.9/" LoadModule php5_module "d:/ Php5.6.9/php5apache2_4.dll "FindAddType application/x-compress. ZAddType application/x-gzip. gz. tgzafter addingAddType application/x-httpd-php. php5. Start httpd notes from the command line: NETSTAT-ANB View port number usage
Apache2 and PHP5 installation Configure the most streamlined configuration steps under Windows