Recommended File and Directory Permissions for Your Website

For both security and functionality, it's very important to set the right permissions for the files and folders on your website. This guide tells you what permissions to use in cPanel.

Permissions for Files

Files uploaded via cPanel File Manager are automatically set to chmod 644. FTP uploads usually follow the same default unless configured differently.

Permissions for Directories

Directories uploaded via cPanel File Manager automatically get chmod 755. FTP uploads follow this default unless changed.

What if Your App Suggests Different Permissions?

Some PHP programs suggest chmod 777 for files or folders. This isn’t needed for PHP websites running on LiteSpeed with suEXEC CGI. Your cPanel username owns the files, so chmod 600 or chmod 644 works perfectly. Only the owner needs read/write access.

Tip: If you’re unsure or want to make your website as secure as possible, contact the Cyberin support team. We can help!