Setting file permissions for scripts and folders uploaded to your hosting significantly affects how your website behaves when accessed. For example, if the index.php file in your website script is set to 000, your website will return an error when accessed.
If the files or folders you uploaded have incorrect permissions, you can change the file permissions in cPanel by following these steps
How to Change File Permissions in cPanel
By default, website files will use permissions 0644 and folders will use 0755 or they can be adjusted according to the CMS you are using.
Here are the easy steps to change file and folder permissions in cPanel:
- Log in to cPanel
To access cPanel, you can usually do so via https://cpanel.namadomain.tld if you point your domain directly to the hosting using NS, or if you have created a cPanel subdomain without pointing NS to the hosting - Open the File Manager page
To open the File Manager page quickly, use the search feature inside cPanel - Open the folder where your files are stored
Once you are in the File Manager, you can open the folder where you store your website scripts and folders, for example in the public_html folder - Select a file or folder
Select the file or folder for which you want to change permissions, then right-click on that file or folder and you will see the option Change Permissions - Adjust Permissions
Adjust the permissions as needed. For example, if using the default settings, you can use 0644 for files and 0755 for folders - Done
To save your changes, simply click the button Change Permissions
That is the easy way to change file permissions in cPanel. If you want to change permissions for many files and folders, it is recommended to change file permissions recursively using SSH by following this tutorial: How to Change cPanel File Permissions Recursively
COMMENTS
Loading...