phpstudy cannot open localhost

angryTom
Release: 2019-10-21 11:11:23
Original
6544 people have browsed it

phpstudy cannot open localhost

##phpstudy cannot open localhost

1. First open the

httpd.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>
Copy after login

3. Add the domain name in the host file:

127.0.0.1 localhost
Copy after login

4. Change "

#ServerName localhost:80 in httpd.conf "Or just comment out "ServerName localhost", localhost can be accessed normally!

Recommended tutorial:

phpstudy usage 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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template