Software⏱️ 2 min read📅 2026-05-31

How to Fix: Error message "Forbidden You don't have permission to access / on this server"

Apache HTTP server configuration issue

Quick Answer: Check the file permissions and ownership of the / directory in your httpd.conf, ensure that the Apache user has read and execute permissions.

The error message 'Forbidden You don't have permission to access / on this server' indicates that the Apache server is not configured correctly, or there is an issue with file permissions.

🔍 Why This Happens

  • [Cause]

🚀 How to Resolve This Issue

Method 1: Directory Permissions

  1. Step 1: Open the terminal and navigate to your document root directory.
  2. Step 2: Run the command `chmod -R 755 /var/www/html` to change the permissions of the entire HTML directory.

Method 2: Virtual Host Configuration

  1. Step 1: Open the httpd.conf file in a text editor and navigate to the virtual host section.
  2. Step 2: Update the `DocumentRoot` directive to point to the correct directory, for example: `DocumentRoot /var/www/html

💡 Conclusion

By following these steps, you should be able to resolve the 'Forbidden You don't have permission to access / on this server' error and successfully load phpMyAdmin.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions