File permissions determine who can read, write, or execute files on your server. Incorrect permissions can cause website errors or security risks.
To change permissions in cPanel:
-
Log in to cPanel and open File Manager.
-
Navigate to the file or folder you want to modify.
-
Right-click the item and choose Change Permissions.
-
Adjust the permission numbers (for example, 755 for folders or 644 for files).
-
Click Save.
Typical permissions:
-
Folders: 755
-
Files: 644
-
Configuration files: 440 or 400
Never set permissions to 777, as this allows anyone to modify files and can lead to hacking.