By JuanSaudade
Hi,
Today morning i was trying to access A wordpress and a Moodle app in the dropplet, but i am receiving the 403 Forbidden error when accesing admin panel in WP and in Moodle in general. I have checked the hosts configuration files and updated with the appropiate rules, also i checked permissions on folders and files an nothing resolves the issue.
I am detecting some wierd behavior on .htaccess files, whenever i want to change the rules in the htaccess file in wordpress installation the changes are reverted, despite i disbled all plugins manually and deleted the file, it appears again and maybe one of the rules in this file is causing the forbidden error.
I was trying to do anything possible, but now i am stuck and cannot try anything else, but restore the dropplet from a backup.
Any hint would be great,
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @JuanSaudade
You can examine the Apache/Nginx error log in order to track down the source of the issue here.
Also, you can double-check the file/folder ownership and permissions and make sure that they’re correct.
The log can be accessed using the cat, tail or the less command
- sudo tail -n 2 /var/log/apache2/error.log
Substitute the number of lines that you would like to examine in place of the number 2 in the command.
If you’re using Nginx you can use the following command:
- tail -n 2 /var/log/nginx/error.log
Regards, Alex
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.