##phpstudy cannot open localhost
1. First open thehttpd.conf file, Open the comment "Include conf/extra/httpd-vhosts.conf" in httpd-vhosts.conf, and load this file first when starting the service.
2. In the httpd-vhosts.conf file Configure the virtual host of localhost in:<VirtualHost *:80> DocumentRoot "F:/PHP/environment/phpstudy/WWW" ServerName localhost </VirtualHost>
127.0.0.1 localhost
#ServerName localhost:80 in httpd.conf "Or just comment out "ServerName localhost", localhost can be accessed normally!
Recommended tutorial:The above is the detailed content of phpstudy cannot open localhost. For more information, please follow other related articles on the PHP Chinese website!