Skip to main content
Hosting How-To

How to fix Error You do not have permission to access… – Hosting

By May 21, 2021No Comments

&#13

Every file and listing in the Linux process is owned by a specific user and group and has permissions that allow for accomplishing specific actions on this file or folder. When a person of these settings is not established up adequately, the talked about error concept appears.

&#13

Experience totally free to look at this report for a far better understanding of the issue with permissions.

&#13

There are a number of motives why you may well obtain the authorization mistake.

&#13

&#13
The first just one – either the operator/team or permissions are not set up effectively. This is the initial item that must be checked.

&#13

&#13
The second one – the .htaccess file executes the code that has incorrect redirect configurations. Almost certainly, the redirect is established up for the file/folder with a erroneous owner/group or permissions. Also, there may perhaps be the next line in the .htaccess file that triggers these an mistake:

Alternatives -Indexes

&#13

To resolve this issue, the line ought to be eliminated.

&#13

This is the next product that must be checked and set if it is identified.

&#13

This difficulty also may perhaps take place if you delete the public_html folder unintentionally and build it manually again without the need of calling our Internet hosting Department. In this scenario, permissions for community_html and other program folders get set up improperly, and you obtain the described error.&#13
&#13

&#13

These designations – ‘/’ and ‘/ index.html’ – in the error message associate with the immediate folder or file that Apache attempts to execute. This symbol ‘/’ signifies the general public_html listing this a single ‘/ index.html’ – the file that is located in the general public_html listing (the index.html file in individual). If Apache tries to refer to the file or folder whose owner or permissions are not established up correctly, you will receive the identical error but with the immediate route which is in question.&#13
&#13


&#13

&#13
Error information: You do not have authorization to obtain /index.html&#13
&#13

&#13
&#13

Option:
You should test the permissions of the index.html file. You could look at and established them using either the command window (by using Shell obtain) or File Supervisor that is found in the cPanel account. The permissions of files should really be 644.&#13

Making use of Shell obtain:

1. Link to your account by using SSH protocol&#13
&#13
&#13

2. Abide by the general public_html folder working with the cd community_html command

You may perhaps check out which folder you are in now making use of the ‘pwd’ command. The result of this command must be ‘home/cPanel_username/general public_html’.

3.Use the ls -l /property/$Consumer$/index.html command, in which $User$ is your cPanel username.

&#13

The utilization of this command will demonstrate you the permissions of the index.html file. The perfect final result of this command really should be:&#13

&#13
&#13

-rw-r–r– number cPanel_username cPanel_username working day month yr time index.html&#13
&#13

4. If you see any distinctions in the permissions discipline (-rw-r–r– ) , you require to perform the subsequent command chmod 644 index.html &#13

This command sets up the proper permissions for the index.html file.&#13
&#13

Utilizing File Manager

1. Log into cPanel&#13
&#13

2. Abide by the File Supervisor icon in the Documents field&#13
&#13

3. At the major of the window that opens, you will see the Alter Permissions icon
4. Select the index.html file > simply click Transform Permissions
5. Established up permissions to 644 > Help you save.&#13

       Mistake message: You do not have permission to entry /&#13

Alternative: You really should test the permissions of the public_html folder. You may well check out them working with possibly the command window (via Shell entry) or File Manager that is situated in the cPanel account. The permissions of the general public_html folder really should be 750.&#13

Applying Shell accessibility

1. Link to your account via SSH protocol
2. Use the cd ~ && ls -l | grep public_html command &#13
&#13
&#13

The use of this command will present you the permissions of the community_html folder. The ideal consequence of this command need to be:

drwxr-x— variety cPanel_username no one day thirty day period year time community_html/&#13

3. If you see any dissimilarities in the permissions area (drwxr-x— ), you need to have to set the appropriate ones. To do this, use the subsequent command chmod 750 community_html.&#13
&#13

4. If you see any distinctions in the team area (no person), you need to have to get in touch with our &#13
&#13
Aid workforce in purchase for them to set up the proper group. Sadly, you are not ready to established the appropriate group by yourself simply because you do not have the root obtain to the server.&#13
&#13

Using File Supervisor

1. Log into cPanel
2.Observe the File Supervisor icon in the Information subject
3.On the still left of the window that opens, you will see permissions of all documents and folders&#13

4.If the permissions of the public_html folder are not 750, you want to set the suitable kinds. To do this, complete the pursuing steps:&#13
&#13

  • Decide on the community_html folder > simply click on the Adjust Permissions icon
  • Established up permissions to 750 > Conserve.

5. Distinct the browser cache
6. Obvious your community DNS cache
7. If you are even now experiencing the same issue, &#13
&#13
get in touch with our assistance to set the accurate group to the general public_html folder.&#13
&#13

Leave a Reply