input license here

Sửa lỗi "You don't have permission to access / on this server"




Website administrators often encounter the error message "You don’t have permission to access / on this server“. This will cause you to be blocked from accessing the website address. So, in the following article, BKNS will send you You don't have permission to access / on this server so that you can clearly fix the error. Let's follow up now.



lỗi You don't have permission to access / on this server

Cách sửa lỗi You don’t have permission to access / on this server



1. Nguyên nhân gây ra lỗi You don’t have permission to access / on this server


Here are 4 causes lỗi you don’t have permission to access / on this server



  • Appears with the tag do hosting company Did you update or change anything in the system?

  • Due to plugin or plugin incompatibility

  • Wrong permission of folder or file

  • Wrong .htaccess file configuration


>> Learn more:



2. Cách sửa lỗi You don’t have permission to access / on this server


Method 1: Disable too WordPress plugins



Disable too WordPress plugins

Disable too WordPress plugins



If you are causing this error due to plugin or plugin incompatibility, then you need to disable all plugins and gradually activate each plugin.


To check which plugin is causing the error you can follow these steps:


Step 1: Log in to your hosting account with FTP, then go to public_html (or the directory containing the file to run the website)


Step 2: Access folder wp-content, next choose Plugins, change the name to something else such as: disabled-plugins. This will help you to disable the plugin.


Disable too WordPress plugins to fix the error you don't have permission to access / on this server


Step 3: Then you access the website again. If you can access the website, it also means that the plugin has an error. Then try deactive plugins each one and also check if your website works by disabling each one. This step will help you to know which plugin is causing the error.


Step 4: You can reinstall or update the plugin once you've determined which plugin is causing the error.


If this doesn't work, please refer to the 2 more ways below.


Method 2: Handling decentralization


To fix lỗi You don’t have permission to access on this folder, you need to folder or file permissions. The reason is that when the file is created it will be created with the default permissions. These permissions include execute, read, and write permissions. But over time, these permissions will change depending on the request. Changing file permissions is a very simple task. You can do this via file manager or FTP client. Besides, FileZilla FTP client gives you many options to change folders or files as you like.


To change the permissions when using FTP, follow the steps given below:


Step 1: By FTP client you can access the website


Step 2: Go to the root of your Hosting account


Step 3: Go to the main folder including all files (most are public_html), click and select File Permissions.



folder or file permissions to fix you don't have permission to access / on this server.

folder or file permissions to fix you don't have permission to access / on this server.



Step 4: To enter Apply to directories only and enter permissions as 775 then click the button OK.


Step 5: After FileZilla has completed the permission change step, repeat step 3 but choose Apply to files only then fill in the permissions 664 choose OK.


folder or file permissions to fix errors you don't have permission to access / on this server 1Once done, go to the website and see if the error has been resolved.


Method 3: Check the .htaccess file


If you have done the above 2 ways, you still see the appearance lỗi You don’t have permission to access / on this server then you need check .htaccess file. The .htaccess file is a server configuration file and works mainly to configure the settings of the Apache web server. Find the .htaccess file, do the following steps:


Step 1: In the hosting Control Panel, go to File Manager.


Step 2: Search file .htaccess in public_html directory


Step 3: If you don't see the .htaccess file, go to Settings to work Show Hidden Files (dotfiles).


Kiểm tra file .htaccess để sửa lỗi you don't have permission to access / on this server


The .htaccess file is present in all WordPress websites, but there are still some cases where the .htaccess file is deleted unintentionally, you can recreate the .htaccess file by following these steps:



  • Download the .htaccess file to your computer to save a backup

  • Delete this file in the server


Kiểm tra file .htaccess để sửa lỗi you don't have permission to access / on this server 1



  • Go back to the website

  • If the website works then the cause of the error is .htaccess

  • This step helps you to create a new .htaccess file: login to your WordPress dashboard, select Settings then choose Permalinks

  • Click the button Save


Kiểm tra file .htaccess để sửa lỗi you don't have permission to access / on this server 2The .htaccess file will be created.


So in the above article, BKNS has provided you with a way sửa lỗi You don’t have permission to access / on this server. If you have any other questions, please leave a comment below for immediate support. Also follow the website https://www.bkns.vn/ Read more useful articles.


Related Posts
Diệp Quân
Nguyen Manh Cuong is the author and founder of the vmwareplayerfree blog. With over 14 years of experience in Online Marketing, he now runs a number of successful websites, and occasionally shares his experience & knowledge on this blog.
SHARE

Related Posts

Subscribe to get free updates

Post a Comment

Sticky