Home > Article > Operation and Maintenance > phpstudy cannot connect to localhost
Several solutions to why phpstudy cannot connect to localhost:
1. Comment out "#ServerName localhost:80" or "ServerName localhost" in httpd.conf Just drop it.
2. The port number is occupied, click "Apach Settings" and set port 80 to 8080 or other
2. Make a modification to httpd-conf in "Configuration File"
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow deny from all Satisfy all </Directory>
deny from all changed to allow from all
The above is the detailed content of phpstudy cannot connect to localhost. For more information, please follow other related articles on the PHP Chinese website!