How to fix or reset file and folder permissions

In the event that your file/directory permissions are changed under your account for any reason and you need to reset them to the correct defaults you can do this with a few clicks in the FileZilla FTP Client and most other popular FTP clients.

1) Connect to your site via FTP or FTPS in FileZilla. Navigate to your "/public_html" directory in the "Remote site" section. Select all directories and files inside there.

2) Right click on one of the selected items and choose "File permissions..." from the menu. Select "Recurse into subdirectories" and then enter "755" in the Numeric Value field. Choose the "Apply to directories only" option. Click OK to apply the changes and wait for the changes to be applied.

3) Repeat step 2, but this time enter "644" in the Numeric Value field (as shown in the image below) and select "Recurse into subdirectories" and then choose the "Apply to files only" option. Click OK to apply the changes.

4) Your permissions will now be set correctly. Note that you should never attempt to set your permissions to 777 even if documentation for a script says that you should, it's not required with the way that our server are configured.

You won't need to modify the permissions in your home directory, just the ones pertaining to your own content that you have created or uploaded to your account. Changes to permissions in your home directory can prevent your email and other account features from working.

IMPORTANT: Your /public_html directory permissions should be left at 750. Be sure not to modify or delete any of the content in your home directory.

Was this answer helpful?

 Print this Article

Also Read

How to run python script

To create and edit Python script in cPanel use the following steps: 1. Log in to your cPanel:2....

33 Ways to monetize your website

Making money from your website isn’t a myth. It’s doable by everyone. In fact, turning a...

How to enable log programs in cPanel

To enable a log program in cPanel, follow these steps: In the Logs section of the cPanel home...

How do I create a backup of my website?

How can I back up my web site? It’s important that you know what you’re backing up first. If...

How to increase upload limit

How to increase memory limit, maximum execution time, maximum input time and maimum post...

Our official partners