Permission setting for files and folders
I have seen backup on Windows based system and uploading to the Linux machine it is wrong permission number.
Can be managed using CPanel and setting if we upload.
WordPress files should be 644 but any upload will break installation as a permission is not the correct number.
-
I'm assuming you are using the cPanel File Manager.
Unfortunately the File Manager does not provide any means of ensuring your folders/files have specific permissions when uploading.
If you need more control over the permissions, using an FTP client is best.
Optionally, after uploading the files you can use Terminal in cPanel or an SSH client to run the chmod command to quickly and easily modify the permissions.
For example:
chmod -R ugo-x,u+rwX,go+rX,go-w /home/YOURUSERNAME/public_html/
Replacing "YOURUSERNAME" with your cPanel username in the above code would reset everything in your public_html folder to 755 for folders and 644 for files.
0 -
How to set within cPanel permissions when we upload files and folders?
0 -
Within cPanel, you can use the File Manager, but it's not very intuitive and really not recommended if you need to mass change multiple folders/files.
An FTP client, such as FileZilla or using Terminal in cPanel or an SSH client is best if you need to change permissions on multiple folders/files.
0
Please sign in to leave a comment.
Comments
3 comments