How to Fix the 403 Forbidden Error in Plesk

How to Fix the 403 Forbidden Error in Plesk

January 15, 2025
MD Pabel

If you’ve encountered a 403 Forbidden Error while hosting your website on Plesk, you’re not alone. This error can be frustrating, especially when your site files and database are perfectly fine, indicating that the issue lies in the server configuration rather than the site itself. Recently, we resolved this issue on our VPS hosting, and here’s a detailed guide on how you can do the same.

What Causes a 403 Error in Plesk?

403 Forbidden Error typically means that the web server is denying access to your website. Here are some common reasons:

    1. Incorrect file or directory permissions.
    2. Misconfigured web server settings (Apache or Nginx).
  1. Issues with the Web Application Firewall (WAF) settings.
  2. Missing or improperly set index.html or index.php files.

How We Fixed the 403 Error

1. Logged into the VPS via SSH

To diagnose and fix the issue, we accessed the server using an SSH client like PuTTY. Once logged in, we had full control to execute server commands.

2. Ran the Plesk Repair Command

We ran the following command to repair configurations, permissions, and settings:

plesk repair all

 

This command checks for issues in the file system, database, web server configurations, and more. Here’s what it fixed:

  • Incorrect permissions in the website’s root directory.
  • Web server configuration errors.
  • SSL/TLS certificate misconfigurations.

The repair process is interactive and asked for confirmations to fix errors. For instance, it asked whether to reconfigure permissions and repair the web server configuration. We confirmed with Y for all prompts, ensuring that everything was fixed.

After running the repair command, the 403 error was resolved, and the site loaded successfully.

Tags

About the Author

MD Pabel

MD Pabel

MD Pabel is the Founder and CEO of 3Zero Digital, a leading agency specializing in custom web development, WordPress security, and malware removal. With over 7+ Years years of experience, he has completed more than3200+ projects, served over 2300+ clients, and resolved4500+ cases of malware and hacked websites.

0 Comments

💬

No comments yet. Be the first to share your thoughts!

0/2000

By commenting you agree to our terms.