Home>Article>Operation and Maintenance> phpstudy cannot open localhost
##phpstudy cannot open localhost
1. First open thehttpd.conffile, 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:3. Add the domain name in the host file:DocumentRoot "F:/PHP/environment/phpstudy/WWW" ServerName localhost
127.0.0.1 localhost4. Change "
#ServerName localhost:80in 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!