Cpanel: Website show 403 Forbidden Error

I just received a complain from my customer said that he unable to view his website from the web browser. It show Error 403 Forbidden.

403 Forbidden Error

As mention by my customer, he created the account vis cPanel and restored the backup file from
previous hosting. All files are owned by user terminal and group terminal. Directory and file
permission should be correct as they’re carried over from the previous hosting.

I tried to check logon to the server to do further checking. I notice that the ownership of the public_html folder is not set correctly

[19:23:22 cpanel root@7520653 /home/terminal]cPs# ll |grep public_html
drwxr-x---   6 terminal terminal 4.0K Apr 15 18:01 public_html/

Permission for public_html were set to user.user instead of user.nobody. I proceed to change the ownership to terminal.nobody

[19:26:00 cpanel root@7520653 /home/terminal]cPs# ll |grep public_html

drwxr-x---   6 terminal nobody   4.0K Apr 15 18:01 public_html/

After did the changed, the website able to load.

As summary, public_html ownership and permission should set to 0750 and username.nobody. Subfolder inside public_html no need to do any change.

 

 

IPV4 and IPV6 Subnet Size Reference Table

IPV4 SUBNETTING TABLES

Network Bits Subnet Mask Number of Hosts
/1 128.0.0.0 2147483646
/2 192.0.0.0 1073741822
/3 224.0.0.0 536870910
/4 240.0.0.0 268435454
/6 252.0.0.0 67108862
/7 254.0.0.0 33554430
/8 255.0.0.0 16777214
/9 255.128.0.0 8388606
/10 255.192.0.0 4194302
/11 255.224.0.0 2097150
/12 255.240.0.0 1048574
/13 255.248.0.0 524286
/14 255.252.0.0 262142
/15 255.254.0.0 131070
/16 255.255.0.0 65534
/17 255.255.128.0 32766
/18 255.255.192.0 16382
/19 255.255.224.0 8190
/20 255.255.240.0 4094
/21 255.255.248.0 2046
/22 255.255.252.0 1022
/23 255.255.254.0 510
/24 255.255.255.0 254
/25 255.255.255.128 126
/26 255.255.255.192 62
/27 255.255.255.224 30
/28 255.255.255.240 14
/29 255.255.255.248 6
/30 255.255.255.252 2

IPV6 SUBNETTING TABLES Continue reading