Home > Backend Development > PHP7 > body text

php7 installation guide (windows) apache installation (2)

藏色散人
Release: 2023-02-17 12:08:02
forward
2711 people have browsed it

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"
Copy after login

Install apche service

Go to the bin directory under apache from the command line and enter

httpd -k install
Copy after login

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!

Related labels:
source:hcoder.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!