Solution: 1. Modify the permissions and security attributes of the folder; 2. Execute the "ipconfig /flushdns" command in the cmd window to rebuild dos; 3. Open the "httpd.conf" file and change Just change "Deny from all" to "allow from all".
The operating environment of this tutorial: Windows 7 system, Dell G3 computer.
I believe many people have a general understanding of what 403 forbidden means, so how do we solve it when we encounter 403 forbidden? Let’s talk about the solution to 403 forbidden.
When we are making a website, 403 errors will appear on the website from time to time, and the browser will give the type of 404 error, and the server refuses to process it, but generally it is caused by the permissions of the directory.
1. If it is a file permission problem, we can modify the folder permissions and the folder security attributes
You can use the command to modify it, chcon -R -t httpd_user_content_t public_html/, as shown in the figure:
2. For some regular 403 errors, we can rebuild dos
Method: We run cmd on the computer, and then enter ipconfig /flushdns. You can also modify the host file to force parsing.
3. If the 403 problem is caused by apache, we only need to open httpd.conf and change Deny from all to allow from all and 403 will not appear.
4. If 403 appears in the HawkHost space, we only need to add some code to the .htaccess file.
#5. If 403 appears in the directory index, this is also a common problem. I said it was borrowed and asked me to borrow 10,000. I am now How can there be ten thousand,
[Recommended reading: 403 What does forbidden mean】
The above is the detailed content of How to solve 403 forbidden. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download
The most popular open source editor