cPanel

How-to change permissions of a file

Correct permissions are very important for your website to run smoothly and securely. Most website apps require different permissions to ensure they run correctly. There are a number of ways to change the permissions of your directories and files on your Ecenica web hosting.

Using File Manager in cPanel

The easiest way to change the permissions of your files. Please follow the steps below.

  1. Log in to cPanel
  2. Click File Manager
  3. Select the file you would like to change the permissions for.
  4. Click Permissions
  5. Set the permissions you want to use
  6. Click Change Permissions

We recommend setting permissions of 644 for files and 755 for directories.

Tip: You can select multiple files by holding the shift key on your keyboard.

Setting permissions from FTP

  1. Open your FTP app and connect to your web space.
  2. Select the file you would like to change the permissions for.
  3. Right click and select File Permissions, Get Info or similar depending on your FTP app.
  4. Set the permissions you want to use.
  5. Click OK or Apply.

We recommend setting permissions of 644 for files and 755 for directories.

Setting permissions using SSH

  1. Open a SSH connection to your Ecenica web hosting account.
  2. Type
    chmod 644 file.php

    . Change 644 and file.php to the permissions and file name you wish to use.

What do the file permissions mean?

File permissions set who can read, write and execute your files. Permissions are set for owner, group and other or world.

Was this guide helpful?

Need help with this?

Open a ticket and link to this guide so our team can see what you have tried.

View support tickets

Power your business with Ecenica Hosting

Built for WordPress and serious websites. Fast, secure and supported by real people in the UK.

Ecenica hosting services represented by a connected red route across London