Table of contents
1. Basic introduction to Apache
2. Download the Apache installation package
Three, Apache configuration steps
Four, Apache installation steps
1. Basic introduction to Apache
Apache is the world's number one Web server software. It can run on almost all widely used computer platforms , and is widely used due to its cross-platform and security, and is one of the most popular web server-side software.
Because I am learning PHP back-end design, now I need to install a local server (Apache), the following is the installation and environment of the Apache server, I hope everyone can learn together!
2. Download the Apache installation package
The following link is the Apache installation package that I uploaded to Baidu Netdisk, which can be downloaded and used.
Link: https://pan.baidu.com/s/1BaH0XUxRArOQbbpi1zxO7w Extraction code: ooiq
Below is the downloaded screenshot
Decompress the downloaded Apache.zip file package.
1. The folder after decompression
2. After opening the folder
There are three files inside: vcredist, Apache24 win32.zip, Apache24 win64.zip .
It means that you have downloaded successfully! ! !
Three, Apache configuration steps
First, put the downloaded and decompressed installation package on the D disk or E disk, and start the Apache installation and environment construction below.
1. In the D drive. Create a folder named: Apache+php (because we will install PHP and MySQL later).
2. Create another folder in the folder Apache+php and name it: Apache.
3. The installation package we downloaded before is used below.
Check for yourself whether your computer is a 32-bit computer or a 64-bit computer.
If it is a 32-bit computer, use the following compressed package .
If it is a 64-bit computer, use the following installation package:
Because my computer is 32-bit, take 32-bit as an example, and the steps for 64-bit are the same.
4. Decompress the 32-bit compressed package
decompression effect
5. Copy the decompressed 32-bit installation package and the files inside.
6. Paste the copied file into our newly created folder Apache
The effect is as follows
Note: In order to prevent path problems and errors, we will rename the decompressed file Apache24 win32 to: Apache24
7. Open the folder Apache24, the effect is as follows,
8. Open the folder conf
The effect after opening is as follows:
9. Select the file httpd.conf and right-click to edit it in Notepad
10. In the opened Notepad, press the shortcut key ctlr + H to call the replacement window
11. Enter c:/Apache24 in the search content
12. Copy the path of the decompressed file and paste it into the input box replaced by
13. Click Replace All
14. After all replacements, we click Cancel, and press Ctrl + S to save and exit
*In this way, the configuration problem of Apache is solved. The following is the installation and testing of Apache.
Four, Apache installation steps
1. Open the bin file under Apache and copy its path,
For example D:\Apache+php\Apache\Apache24\Apache24\bin
2. Open the command prompt as an administrator
3. Switch the original path in the command prompt window to the copied path
D:\Apache+php\Apache\Apache24\Apache24\bin
4. We use the command httpd -k install to install apache
It will appear the above error, that is because we are missing the installation of the file, the VC 11 32-bit installation in the file we downloaded needs to be installed below.
The installation interface is as follows:
1), Agree to the terms ———> Installation
2), waiting for the installation
3), the installation is successful
5. We repeat steps 1 to 3 to install apache in the command prompt
The final installation effect is:
It means that your Apache has been installed successfully.
Five, Apache test
1. Open the file bin
2. Open the application ApacheMonitor.exe
3. A small icon will appear in the lower right corner of the computer, right-click;
4. Open this program, select Apache2.4, and click Start to start running.
5. At this time, the small icon in your lower right corner will turn green.
6. Open the browser, enter the localhost command in the browser, and the first effect will appear, indicating that Apache has been installed successfully!
If you have any questions, you can leave a message and learn together!