Home>Article>Operation and Maintenance> 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
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.
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:
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!