WampServe installation and configuration method (with installation package)
-
- WampServe installation and configuration method (with installation package)
-
- 1. Introduction to WampServe
- Second, WampServe installation
- 3. WampServe configuration
- 0. Find the httpd.conf file in the conf directory according to this directory (D:\wamp\bin\apache\Apache2.2.21\conf), and open this file in the sublime editor
- 1. ctrl + f enter vhosts to find the line of code 468, remove the preceding #
- 2. ctrl + f Enter documentroot to find DcumentRoot, you can put the www directory under a drive letter, (I use the E disk to demonstrate here), and create a www directory under the E disk, and create a job directory in the WWW directory
- 3. Then continue to find 127.0.01, change 127.0.01 in the file to Allow from all and then ctrl + s to save
- 4. Open the extra folder in the conf folder and drag the httpd-vhosts.conf file to sublime.
- 5. Copy a copy of the code in the frame below, put it on top of this line of code, and modify it as shown in the figure below
- 6. Open this path, C:\Windows\System32\drivers\etc, find a hosts file, drag this file to the desktop, and then drag it to sublime to add a virtual domain name
- 7. Save the above hosts file after modification, then send the hosts file to the original etc folder, restart wamp, and then enter www.job.com in the browser. As shown below
-
- WampServe installation and configuration method (with installation package)
1. Introduction to WampServe
WampServer is an integrated software package for Apache web server, PHP and MySQL database.
Wamp means Windows + Apache + MySQL + PHP, and Server represents the server.
Second, WampServe installation
WampServe software download link: https://pan.baidu.com/s/1slYZepR Password: j6xs
Double-click the wampserver.exe file to install (PS: Please specify a non-Chinese path during installation)
The path I installed is D:\wamp
3. WampServe configuration
0. Find the httpd.conf file in the conf directory according to this directory (D:\wamp\bin\apache\Apache2.2.21\conf), and open this file in the sublime editor
1. ctrl + f enter vhosts to find the line of code 468, remove the preceding #
2. ctrl + f Enter documentroot to find DcumentRoot, you can put the www directory under a drive letter, (I use the E disk to demonstrate here), and create a www directory under the E disk, and create a job directory in the WWW directory
Also set line 207 <Directory”E:/www/”>**
3. Then continue to find 127.0.01, change 127.0.01 in the file to Allow from all and then ctrl + s to save
4. Open the extra folder in the conf folder and drag the httpd-vhosts.conf file to sublime.
5. Copy a copy of the code in the frame below, put it on top of this line of code, and modify it as shown in the figure below
6. Open this path, C:\Windows\System32\drivers\etc, find a hosts file, drag this file to the desktop, and then drag it to sublime to add a virtual domain name
7. Save the above hosts file after modification, then send the hosts file to the original etc folder, restart wamp, and then enter www.job.com in the browser. As shown below