Home  >  Article  >  Backend Development  >  php cannot access localhost

php cannot access localhost

藏色散人
藏色散人Original
2019-10-02 09:55:467984browse

php cannot access localhost

php cannot access localhost?

Solution:

1. Visit 127.0.0.1 to see if you can access it

2. If you can, open it with Notepad C:/WINDOWS/system32/drivers/etc/hosts file, see if it contains: 127.0.0.1 localhost, if not, add it, and then check whether you can access localhost.

3. If you cannot access it, try reinstalling it

For more PHP knowledge, please visit PHP Chinese website!

The above is the detailed content of php cannot access localhost. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:php cannot create folderNext article:php cannot create folder