By bbriones90
http://prntscr.com/93a23y It has emerged this mistake when updating the permalinks, and do not know how to fix it
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!
The first step would be checking your webserver’s logs for errors. If you are running Apache, run the following command to read the last few lines of the error log:
sudo tail /var/log/apache2/error.log
Otherwise, if you’re running Nginx, use this command instead:
sudo tail /var/log/nginx/error.log
As a reference (for the future):
https://wiki.apache.org/httpd/ClientDeniedByServerConfiguration
Specifically, from the above, you may need to check your Order, Deny directives and correct or add them (if they do not already exist).
Beyond that, you should also check to make sure that the user & group that Apache is run as has the permissions to read, write and execute from your defined directories, and that all files and directories have proper CHMOD values (typically 0644 for PHP files and 0755 for directories - ideally, nothing should have a 0777, or world-writable CHMOD).
–
If this issue is a result of updating (WordPress?) permalinks, you can safely delete the .htaccess file in the web root (make a backup first by downloading to your PC/Mac). When you click on save or update in /wp-admin under the permalinks menu, a fresh .htaccess file will be generated for you.
You should also scan other directories for any stray .htaccess files to ensure that one is not clashing with another.
If generating a new one does not fix the issue, this would be the time to begin disabling all plugins. Why? Plugins have the ability to write to your .htacccess file by default. If there’s a plugin that is making changes and making a mess of the file, only by disabling all plugins and proceeding to enable them one-by-one again will you be able to find the issue (if related to a plugin and if the error logs are not providing you with more details).
Feel free to also post your .htaccess file here and I’ll be more than happy to take a look at it for you.
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.