The next step is to go to PHP learning, so to install Apache server and PHP, from yesterday onwards until just before the configuration is complete, the middle also encountered some problems, so tidy up and write down. Next is the Win64 bit system configuration Apache2.4 and PHP7.0 steps (there is already MySQL on the computer, so there is no way to write MySQL installation steps):
First, download the Apache2.4 steps:
A) Open: http://httpd.apache.org/download.cgi After clicking files for Microsoft Windows
Open and click the Black icon under Apache 2.4.23 x64 under Apache 2.4.x VC14 ,
Second, php7.0 the download Steps
Some articles recommend this site http://windows.php.net/download#php-7.0, originally I also go to this site download, PHP7.0.10 under the VC14 x86 Thread Safe (2016-aug-18 20:13:38), note that thread safe (thread safe) is not non thread safe (non-thread safe), but this error occurs when you start Apache after following the steps on the Web: The requested operation has failed! (The requested operation failed!) )
Configured a lot of times, and finally with the command to see the error (command at the bottom) found to be a PHP configuration error, so I changed a PHP version, I use php7.0.6, the configuration once again succeeded. E:/apache24/bin/httpd.exe-w-n "apache24″-k start check Apache configuration The first few lines of error. The blue part is the path where you unzip the Apache Tarball, and it remains unchanged.
This is APACH2.4.23 's compressed package: HTTP://PAN.BAIDU.COM/S/1KVHI8ZD
This is php7.0.6 's compressed package: Http://pan.baidu.com/s/1dF5bxKl
Note: These two compressed packages should be unpacked in the same directory under the E-drive or in the same folder. My Apache24 and php7.0.6 are all in the E-packing directory III, Apache2.4 configuration and installation A, open apache24/conf/httpd.conf file for editing. 1), 38 lines should be changed toDefine srvroot "E:/apache24"2), 39 lines ServerRoot "${srvroot}" to ServerRoot "E:/apache24″ Note: is the English state of the quotation marks, the blue part is your own path, the same as 3), 246 lines DocumentRoot" ${srvroot}/ Htdocs "Change to DocumentRoot" E:/apache24 "(you will write the site in this directory) 4), 247 lines <directory" ${srvroot}/htdocs "> Changed to <directory" E :/apache24 "> (IBID.) 5), 280 lines DirectoryIndex index.html changed to DirectoryIndex index.html index.php index.htm (New index.php added index.htm) 6), 363 lines scriptalias/cgi-bin/"e:/ apache24/cgi-bin/"7), 379 lines <directory" ${srvroot}/cgi-bin "> Changed to <directory" E:/apache24/cgi-bin "> 8), At the end, add the following three lines of content to enable Apache to support PHP7LoadModule php
7_module "E:/php7.0.6/php7apache2_4.dll (note that the PHP version corresponds to the modification if it is 5.) X is changed to 5)addtype application/x-httpd-php. php. html. htmPhpinidir "e:/php7.0.6Windows How to install PHP7,PHP7 inside without this php7apache2_4.dll, how to do?
1. To download the thread safe, you download the not thread safe.
2. If it is a 64-bit system to download x64, x86 not
The configuration section is complete here. B, Apache install to system service and uninstall Apache service 1), E:/apache24/bin/httpd-k install-n "Apache24" 2), if you want to uninstall this service, first stop this service in Task Manager, then Line command httpd.exe-k uninstall-n "Apache24″, uninstall complete. Iv. PHP7 Configuration Step a), copy the e:/php7.0.6/php.ini-production, and rename it to php.ini; add e:/php7.0.6 and E:/php7.0.6/ext to the system environment variable path. (Right-click this computer = Properties = + Advanced system settings = environment variable = = System variable find path, tap edit then New,)
Then click OK ok ok, B, open a few common PHP extensions with Notepad or Sublim or Notepad (preferably Notepad or Sublim, this two software shows the number of lines) to turn on the php.ini file you just renamed for editing 1, 724 lines; extension_dir = "ext" Removes the preceding semicolon and changes to Extension_dir = "e:/ apache2.4&php7.0.6/php7.0.6 " 2, 867 lines; Extension=php_curl.dll Remove the front semicolon 3, 869 lines; Extension=php_gd2.dll Remove the front semicolon 4, 876 lines; extension =php_mbstring.dll Remove the front semicolon 5, 878 lines; extension=php _mysqli.dll Remove the front semicolon 6, 882 lines; Extension=php_pdo_mysql.dll Remove the front semicolon if you have; extension=php_mysql.dll Then get the semicolon out of here. PHP7 Configuration completed finally launched Apache, there are two ways: 1, open apache24/bin/apachemonitor.exe,2, start cmd in Windows service: Httpd.exe- K Start is best to use the Administrator mode command prompt if Apache cannotStart up or have other problems to see the error log apache/logs/error (error log only after a successful run). Use e:/apache24/bin/httpd.exe -w -n "apache24″ -k start this command to see which line of the configuration file is wrong.
Install configuration Apache2.4 and php7.0