Home>Article>Backend Development> php7 installation guide (windows) apache installation (2)
After downloading, you will get a compressed file (httpd-2.4.18-x64-vc11.zip). Unzip the file and copy it to the installation directory.
The installation directory of this tutorial is d:\phpserver, and the installation directory of apache is d:\phpserver\apache
Modify the configuration file
Configuration file location: D:\phpserver\apache\conf\httpd.conf
Modify line 38 of the configuration file
Define SRVROOT "/Apache24"
Modify to
Define SRVROOT "D:\phpserver\apache"
Install apche service
Go to the bin directory under apache from the command line and enter
httpd -k install
to install apache as a windows background service.
Use ApacheMonitor.exe to manage apache
Open D:\phpserver\apache\bin\ApacheMonitor.exe You can start apacheMonitor to manage apache (it can be a desktop shortcut).
Click to start apache to start apache.
Visit localhost to view the effect.
Related recommendations: "PHP7 Tutorial"
The above is the detailed content of php7 installation guide (windows) apache installation (2). For more information, please follow other related articles on the PHP Chinese website!