简体   繁体   中英

Cpanel Permission when uploading

When I upload files through my cpanels file manager all my php file permissions are being changed to 0666 from what I read this is not secure + it is causing my WordPress to not function correctly. Normally web hosts have the permissions set to 0644 when uploading files. It would takes ages for me to change all files manually from 0666 to 0644. How can I change the permissions when I upload in cpanel? Should I try ftp and see if that makes a difference?

EDIT

When I upload the zip file it uploads as 0644 than when I extract the files inside are all turned into 0666.

Thanks

There is no need for you to re-upload all files to simply change permission for them.

Use your FTP client to change file permissions for files, directories and sub-directories.

You can do this via command-line SSH (if you have access).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM