Home>Article>Operation and Maintenance> How to open the website in phpstudy

How to open the website in phpstudy

步履不停
步履不停 Original
2019-06-10 13:57:22 20351browse

How to open the website in phpstudy

How to open the website in phpstudy

Click on the other options menu in the picture above, the following dialog box will pop up, and then click on Site Domain Name Management

How to open the website in phpstudy

Then fill in any domain name you want in the edit box of the website domain name.

Here I will fill it in as www.test.com

( Note that this domain name must not be filled in with the domain name you often use to access the Internet. Otherwise, when you want to access it, you will access your locally built website. Remember),

Website Directory Edit Box You can choose any directory on your computer, but do not include Chinese characters in the path. In my case, it is D:\php\www\testfilename. After setting, click Add, click Save settings and generate the configuration file.

How to open the website in phpstudy

At this point, we are more than half successful. The last key step is to set the hosts of your computer (for the search for the hosts file, see the end of this article, the hosts file Search tips),

Open your hosts file with Notepad, and then set it as shown below:

How to open the website in phpstudy

How to open the website in phpstudy

Recommended Tutorial:phpStudy Quick Start Video Tutorial

The above is the detailed content of How to open the website in phpstudy. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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