Wampserver cannot open http: // localhost

Source: Internet
Author: User

This problem belongs

Solution for occupying Apache port 80 in wampserver

Create a project named myphp through Zend studio and create a new project named helloworld under the project. the PHP file contains simple HTML statements. It only modifies the tilte name and does not have any PHP statements.
Start the wampserver service, open the browser, and enter http: // localhost/myphp/helloworld. php. The page error message cannot be displayed:
Server or DNS error not found
Internet Explorer
Run the following command to check whether the port is occupied:

When your port 80 is actually used by: Information not available <might be Skype> appears, you can also know that the default port used by Apache is 80)
That is, the current 80 has been occupied by other processes. In this case, you can overwrite the progress of the port, or use the idle port to execute it in the Windows command line window:
C: \ Documents ents and Settings \ Administrator> netstat-Aon | findstr "82"
C: \ Documents ents and Settings \ Administrator>
If no other process uses port 82, modify the listening port in httpd. conf as follows:
   
Open httpd. after the conf file, replace "80" in the file with "82" (in fact, you only need to change it to a place, that is, the "listen" part), and change the above URL to "http: // localhost: 82/myphp/helloworld. PHP. Haha

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.