Fixing ‘you don’t currently have permission to access this folder’

U.S. DollarEuroBritish PoundCanadian DollarsAustralian DollarsIndian RupeesTrung Quốc Yuan RMBMore Info →
*

Domain Name SearchDomain TransferNew TLDsBulk Domain SearchPersonal DomainMarketplaceWhois LookupPremiumDNSFreeDNS

How to fix Error You vì chưng not have permission lớn access…

Every tệp tin và directory in the Linux system is owned by a specific user & group & has permissions that allow performing particular actions on this file or folder. When one of these settings is not set up properly, the mentioned error message appears.

Feel free to kiểm tra this article for a better understanding of the issue with permissions.

There are several reasons why you may receive sầu the permission error.

The first one – either the owner/group or permissions are not mix up properly. This is the first thành tích that should be checked.

Bạn đang xem: Fixing ‘you don’t currently have permission to access this folder’

The second one – the .htaccess file executes the code that contains incorrect redirect settings. Probably, the redirect is phối up for the file/thư mục with a wrong owner/group or permissions. Also, there may be the following line in the .htaccess tệp tin that causes such an error:Options -Indexes

To resolve sầu this issue, the line should be removed.

This is the second thành tựu that should be checked & fixed if it is found.

This issue also may occur if you delete the public_html folder accidentally and create it manually again without contacting our Hosting Department. In this case, permissions for public_html and other system folders get set up incorrectly, and you receive the mentioned error.

These designations - ‘/’ và ‘/ index.html’ - in the error message associate with the direct folder or tệp tin that Apabít tries lớn exedễ thương. This symbol ‘/’ means the public_html directory; this one ‘/ index.html’ – the tệp tin that is located in the public_html directory (the index.html tệp tin in particular). If Apabịt tries to lớn refer to the file or thư mục whose owner or permissions are not mix up properly, you will receive the same error but with the direct path which is in question.

Error message: You vì not have sầu permission to access /index.htmlSolution: You should kiểm tra the permissions of the index.html file. You may check & mix them using either the comm& window (via Shell access) or File Manager that is located in the cPanel tài khoản. The permissions of files should be 644.

Xem thêm: How To Sendmail In Php Mail() Function, Sending Emails In Php With Phpmailer

Using Shell access:1. Connect to your trương mục via SSH protocol2. Follow the public_html folder using the cd public_html commandYou may kiểm tra which thư mục you are in now using the ‘pwd’ comm&. The result of this commvà should be ‘home/cPanel_username/public_html’. 3.Use the ls -l /home/$USER$/index.html command, where $USER$ is your cPanel username.


The usage of this command will show you the permissions of the index.html file. The igiảm giá result of this commvà should be:
-rw-r--r-- number cPanel_username cPanel_username day month year time index.html4. If you see any differences in the permissions field (-rw-r--r-- ) , you need to lớn persize the following comm& chthủ thuật 644 index.html This comm& sets up the correct permissions for the index.html file.Using File Manager1. Log inkhổng lồ cPanel2. Follow the File Manager icon in the Files field3. At the top of the window that opens, you will see the Change Permissions icon4. Choose the index.html file > clichồng Change Permissions5. Set up permissions to lớn 644 > Save.
Solution: You should check the permissions of the public_html folder. You may check them using either the command window (via Shell access) or File Manager that is located in the cPanel tài khoản. The permissions of the public_html thư mục should be 750.Using Shell access1. Connect to lớn your trương mục via SSH protocol2. Use the cd ~ &và ls -l | grep public_html commvà The usage of this commvà will show you the permissions of the public_html thư mục. The ideal result of this commvà should be:drwxr-x--- number cPanel_username nobody day month year time public_html/3. If you see any differences in the permissions field (drwxr-x--- ), you need to lớn phối the correct ones. To do this, use the following commvà chgian lận 750 public_html.4. If you see any differences in the group field (nobody), you need to lớn liên hệ our Support team in order for them to set up the correct group. Unfortunately, you are not able khổng lồ phối the correct group yourself because you bởi vì not have the root access khổng lồ the server.Using File Manager1. Log into lớn cPanel2.Follow the File Manager ibé in the Files field3.On the left of the window that opens, you will see permissions of all files & folders4.If the permissions of the public_html folder are not 750, you need khổng lồ phối the correct ones. To vì this, perform the following actions:

Choose the public_html thư mục > cliông xã on the Change Permissions
iconSet up permissions to lớn 750 > Save.

Xem thêm: Cập Nhật Cách Tắt Định Dạng Bán Hàng Trên Facebook Cá Nhân 2021

5. Clear the browser cache6. Clear your local DNS cache7. If you are still experiencing the same issue, liên hệ our support to lớn set the correct group to lớn the public_html thư mục.

Chuyên mục: Kiến thức Hosting