How can I solve Apache installation problems for PHP beginners ~~~ I just installed Apache but it cannot run ~~~ The situation is as follows:
Enter localhost to display
I studied it for a long time last night ~~~ I tried a variety of methods online, but none of them worked ~~~
Please help ·~~ In the following example, I am excited ~~~
Reply to discussion (solution)
Port 80 is occupied by IIS
You need to allocate a new port to apache
Are there any advertisements? I answered a question from someone else. The question is exactly the same as LZ. For more information, see.
Http://wenwen.soso.com/z/q479675492.htm
Find the httpd. conf file
Search for "Listen" and find the text content Listen 80.
Modify port 80 to another idle port to use this port for access debugging.
For example, change to Listen 8080.
Then the browser accesses http: // localhost: 8080/
Or http: // 127.0.0.1: 8080/
You can also use http: // hostname: 8080/(hostname is your own computer name)
1. find the conf folder in the Apache installation directory, find the httpd. conf file, and modify the port.
2. disable IIS when running Apache.
You can select either of the two methods.
If you are a beginner, change to integration. wait until you know the steps for running a website and try to release the website.
If your Apache port is occupied by IIS, turn off the IIS service and try again. choose Control Panel> Administrative Tools> services. Find the IIS service and disable it!
Search for 80 in the configuration file httpd. conf to modify the port number.