Home>Article>Operation and Maintenance> How to set up an apache environment
Apache is the world's number one web server software.
It can run on almost all widely used computer platforms. It is widely used due to its cross-platform and security and is the most popular web server-side software. one. It is fast, reliable and can be extended through a simple API to compile interpreters such as Perl/Python into the server. At the same time, Apache is transliterated as Apache. (Recommended learning:apache use)
This is also what I learned in the first class before learning PHP.
So, how do we build it?
Step one: We need to install "vcredist" first (this software may exist on some computers. If this software exists, you can proceed directly to the second step).
Step 2: Confirm whether the computer is 32-bit or 64-bit, select the folder according to the computer configuration, confirm the folder and rename the folder (Chinese characters and spaces cannot exist in the folder name) and then After copying this folder, select a disk to create a new folder (Chinese characters and spaces cannot exist) and paste it in.
Step 3: After entering, double-click to find the conf folder, continue to double-click to find httpd.conf and use the open method to open it in Notepad (I think this is convenient and fast, because you can replace the path Replace all directly).
The fourth step is to find the path of the file you just opened, as shown in the figure:
The fourth step: Find the path that needs to be replaced in Notepad, What I have here is "c:/Apache24" (don't worry about anything with #, replace all the others with the path opened in the third step) as shown in the picture:
Step 5: Find the bin folder in the folder D:\apachephp\Apache24win32 (that is, the replaced folder) and double-click to open it. There is a red shuttlecock-like icon ApacheMonitor.exe. Double-click to run it as shown in the figure:
Step 6: Search for the command prompt on the computer and open it as an administrator, as shown in the figure:
The input content is:
cd D:\apachephp\Apache24win32\bin Enter (enter)
cd...(two black dots ".") Enter (enter)
cd...(two black dots ".") Enter (enter)
d: Enter (enter)
httpd -k install Just press enter (enter) As shown in the figure:
Step 7: Start ApacheMonitor.exe, click start, open the browser and enter localhost/. The result that appears in the browser is It works!
As shown in the picture:
The Apache environment is set up!
The above is the detailed content of How to set up an apache environment. For more information, please follow other related articles on the PHP Chinese website!