Home>Article>Operation and Maintenance> phpstudy access file error 403/Forbidden solution
When using phpstudy to access files in the WWW directory, the browser prompts aForbiddenerror and no access permission. After searching for information on drinking too much on the Internet and trying it myself, I summarized two methods.
##Method 1:
Open phpStudy, click the button "Other options menu" =>Find phpStudy configuration= >Click "Allow Directory Listing". Finally restart phpStudy.
Go back to the browser,refresh, and you will have permission
Method 2:
Also, if you want to access a certain file, you can configure the site domain name in phpStudyOpen phpStudy =>Click MySQL Manager=>Click site domain name management (just find site domain name management)
Configure the website domain name and website directory, the second domain name and website port do not need to be filled in. After configuring, click "Add" => Then click "Save settings and generate configuration file"
Complete After completing the previous step, we need to start this stepPress window r and enter cmd
Open the command box and enter the commandipconfig
Find the local link IPv6 address
After obtaining the ip, start
Open phpStudy=>Click " "Other options menu" => Click "Open host"
192.168.3.224 murenziwei.com(note,
There cannot be a # sign in front)
After adding, press Ctrl C to save the file,Restart phpStudy, open the browser, and enter your configuration The domain name, ours is murenziwei.com, and this domain name is assigned to the folder I want to access.
The above is the detailed content of phpstudy access file error 403/Forbidden solution. For more information, please follow other related articles on the PHP Chinese website!