Fixing the Files or Directories Permissions using cPanel and FTP Print

  • Updated on 07-May-2024
  • 23

Inaccurate file and directory permissions can cause various issues that can impact the functionality and security of your website. Conversely, the correct permissions ensure that the server can correctly access and execute the files and directories while preventing unauthorized access. Issues caused by incorrect file and/or directory permissions include:

  • Cannot update or install plugins and themes
  • Error messages when uploading files
  • Site becomes inaccessible
  • Security vulnerabilities

Correct File and Directory Permissions

The correct file and directory permissions for WordPress vary, but a common standard is:

  • Files: 644
  • Directories: 755
  • wp-config.php: 640

It's important to note that the correct permissions may vary based on your hosting environment and other factors.

Fixing Incorrect Permissions Using cPanel

cPanel is a web-based control panel that allows you to manage your hosting account and website. To set the file and directory permissions using cPanel, follow these steps:

  1. Log in to your cPanel account.
  2. Click on the "File Manager" option.
  3. Navigate to the directory or file whose permissions you want to change.
  4. Right-click on the directory or file and select "Change Permissions."
  5. Set the correct permissions and save the changes.

Fixing Incorrect Permissions Using FTP

FTP (File Transfer Protocol) is a method of transferring files between your computer and the server. To fix the file and directory permissions using FTP, follow these steps:

  1. First, connect to your website using an FTP client, such as FileZilla.
  2. Next, navigate to the directory or file whose permissions you want to change.
  3. Right-click on the directory or file and select "File permissions."
  4. Set the correct permissions and save the changes.

Was this answer helpful?

« Back

Powered by WHMCompleteSolution