Home >Backend Development >PHP7 >php7 installation guide (windows) apache installation (2)

php7 installation guide (windows) apache installation (2)

藏色散人
藏色散人forward
2019-04-13 14:49:282843browse

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

php7 installation guide (windows) apache installation (2)

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.

php7 installation guide (windows) apache installation (2)

Use ApacheMonitor.exe to manage apache

php7 installation guide (windows) apache installation (2)

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!

Statement:
This article is reproduced at:hcoder.net. If there is any infringement, please contact admin@php.cn delete