Set up the Apache + PHP + MySQL environment in win8.1. Only localhost can be accessed!

Source: Internet
Author: User
Set up the Apache + PHP + MySQL environment in win8.1. Only localhost can be accessed! I just installed win8.1 Enterprise edition yesterday and set up a server in the Apache + PHP + MySQL environment. I found that only locahost can be accessed, the domain name cannot be accessed, and even 127.0.0.1 cannot be accessed, I don't know why. Please advise!


Reply to discussion (solution)

Hosts is bound. sometimes it may be caused by some security tools.

The hosts binding has been done. you can ping the domain name. Access fails.
127.0.0.1 ce1.test.com
Enter http: // localhost in the address bar for access.
Enter http: // 127. 0.0.1 in the address bar.
Enter the http://ce1.test.com in the address bar (hosts bound domain name) not accessible!

Http: // localhost accessible
Http: // 127. 0.0.1 inaccessible
There is no reason!
Let's take a look at the Listen settings.
And ServerName.

If there is no problem, it may be related to the system (win8 has never been used)

You can also try to change the apache port to 8081!

The http://ce1.test.com cannot access what is prompted, the best post out.

Two! Please advise!


Http: // normal access to localhost!

Try another port. I also encountered this problem at the time and decided to return to win7.

Port changed. invalid !!!!!!!!! 11

I don't know !!!!!!!!!

Close the browser and add a random number after the domain name
Ce1.test.com? T = 1112323

If you use a domain name for access, you must open the rewrite extension and vohosts module.

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.