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.
- Log in to cPanel
- Click File Manager
- Select the file you would like to change the permissions for.
- Click Permissions
- Set the permissions you want to use
- 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
- Open your FTP app and connect to your web space.
- Select the file you would like to change the permissions for.
- Right click and select File Permissions, Get Info or similar depending on your FTP app.
- Set the permissions you want to use.
- Click OK or Apply.
We recommend setting permissions of 644 for files and 755 for directories.
Setting permissions using SSH
- Open a SSH connection to your Ecenica web hosting account.
- 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.