Forbidden: You don’t have permission to access this resource
-
This morning, my self-hosted website gives me “Forbidden: You don’t have permission to access this resource”, when I tried to edit my homepage.
Since I let the browser remember my admin’s username/password, when I access my homepage, I am logged in as the admin, and I can see the admin’s tool bar including menu items “Customize”, “New”, “Edit Page”, “Edit with Elementor”, and so on. When I click on “Edit with Elementor”/”Edit”/”New” etc., I get this forbidden message. When I hover over to my website name and then “Dashboard”, I get the admin’s dashboard but the interface is raw (missing some css?) with expanded lists of menu items, such as “Pages” (then sube menu items) “Pages”, “All Pages”, and “Add New”. If I click on “All Pages” (or other links), I get the forbidden page again.
I tried the followings:
- Remove .htaccess and create a new one.
- Rename wp_content/plugins, in case the problem is caused by one of the plugins.
- Overwrite all WP folders and files with a fresh download.
- “Chown -R” to www-data:www-data, chmod on folders to 755, chmod on files to 644
The latest error log says “AH01797: client denied by server configuration: /var/www/{my domain}/wp-admin/post.php, referer:”{my domain} when I click on “Edit with Elementor” or “Edit Page”.
From time to time, error logs are added as “AH01797: client denied by server configuration: /var/www/{my domain}/wp-cron.php”.
This has happened before, and what I did was completely rebuild the site after everything I’ve mentioned above. This rebuilding method is OK for me since right now the website is brand new and is not in production yet. I suspect it will happen again later on.
- The topic ‘Forbidden: You don’t have permission to access this resource’ is closed to new replies.