Home > Article > Backend Development > 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!