How to get rid of “You don’t have permission to access / on this server.”

Filed in Joomla, Linux

If you ever work on Joomla you may hit with this error.

Forbidden
You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

This was one of the error which lot lot of my time to fix and yes annoying too !!

So here are the steps which I kfollowed to fix this and atlast what I did to get rid of it.

Method 1:

I googled many articles to fix this issue and found many discussions but they worked for me .I will mention here and you may try your luck .

Method 1: (Didn’t worked for me) 🙁

  1. Check if .htaccess file has 0755 permission.IfAdd the below code in .htaccess file

<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>

Restart the apache server and check if you have overcome the issue.

Although this trick didnt worked for me.

Method 2: (worked for me) 🙂

I set 0777 permission to all my folder structure .

chmod 777 public_html/ -R

wow it worked.

I know the above trick will work also for you. Its 100% sure. But after that please change the file permissions for your administrator and important folders as you are inviting hackers to hack your site with 777 .

Leave a Reply

Your email address will not be published. Required fields are marked *