Unable to add public_html folder to a group

#1
I am using CyberPanel with OpenLiteSpeed with one domain, like: example.com

If I add a public_html folder of the domain to a user group, the domain starts giving "too many redirects" error. For example:

Command:

ls -la /home/example.com

returns:

drwxr-x--- 6 exam4939 nogroup 4096 Dec 15 09:18 public_html

And when I add public_html folder to a user group exam4939:

chown exam4939:exam4939 /home/example.com/public_html

then the website does not open in browser with ERR_TOO_MANY_REDIRECTS error in chrome.
 
#3
I want to do it, but it is not that important though. The reason is:

I have 3 linux users:

"root": created by the Ubuntu OS
"exam3949": created by CyberPanel / OpenLiteSpeed installation, and has a group with same name exam3949
"user": I have a user "user" (sudo admin user) that has Gnome / KDE GUI installed for it, and it is used for remote login to my cloud server that hosts example.com using CyberPanel + OpenLiteSpeed.

Even though, the user "user" is admin user, it can not access the website document folder like /home/example.com/public_html because the OpenLiteSpeed uses nogroup, so when I add /home/example.com/public_html to the group exam3949 that has both CyberPanel user exam3949 and my user "user" both, I will then be able to browse the folder in my "user" remote login GUI.
 
Last edited:
Top