JS + Apache + Mysql + PHP project

First, install Apache server environment:

In the official website to download the Apache server ......

Modifying the Apache server configuration, C: \ httpd-2.4.39-o111c-x64-vc15 \ Apache \ conf \ httpd.conf (Apache on my local file path, the configuration in this file) file, modify here: Define SRVROOT "C : \ httpd-2.4.39-o111c-x64-vc15 \ Apache ", quotes the path to the local real path (I have here is to turn over), can also be modified locally here in #Listen 12.34.56.78:80 port number at startup.

Install Apache main service, at the command line, type "D: \ httpd-2.4.39-o111c-x64-vc15 \ Apache \ bin \ httpd.exe" -k install -n apache and press Enter to execute this command means is installed Apache service and name the service is apache (D: \ httpd-2.4.39-o111c-x64-vc15 \ Apache \ bin \ httpd.exe is my local path).

Start the Apache service, find ApacheMonitor.exe file in the bin directory and double-click to open, then an icon appears in the bottom right of the desktop, select the start you can start the service.

Testing Apache service is available, the browser to http: // localhost: 80 (this port number to prevail httpd.conf configuration file), the default Apache page appears successful.

We need to put our htdocs file with the file on the Apache startup folder, the following is the role of Apache file folder:

 

 

Reference links below:

https://www.cnblogs.com/wcwnina/p/8044353.html   

https://blog.csdn.net/Nancy50/article/details/79096898 

          

Guess you like

Origin www.cnblogs.com/xjy20170907/p/11263907.html