Today in this tutorial we will help you learn how you could secure public_html. Permissions can be very important when it comes to hosting your website. Permissions can allow our server computer to write and edit your files. Along with that, some files need to be protected from writing and editing, as a security measure.
Watch this Video Tutorial– How to secure ‘public html’
Follow the methods to change the file permissions and secure public_html:
1. At cPanel user level:
Step::1 Login to cPanel and open File Manager
Steps::2 Scroll over public_html and right click on it and choose Change Permissions option
Step::3 Set the permissions to 0750.
2. At Root level:
Step::1 Login to WHM root and open Server Configuration
Step::2 Open Tweak Settings
Step::3 Go to Security tab and find the option “Enable File Protect”
Step::4 Click over On button and the Save.
3. Via Filezilla SFTP;’
Step::1 Login to Filezilla as root
Step::2 Go to /root and look for “fixperms.sh” file