hi, i have installed new domains on my server and i can see the public_html are 403 forbidden after the server is created. the default virtualmin website is not installed, in the config is this enabled.
/home/user is 750
/home/user/public_html is 750
alot of my domain are working with this permission but the new created are not working they have a 403
[Sun Mar 13 23:51:10.412762 2022] [core:error] [pid 26784:tid 140495133067008] (13)Permission denied: [client ip:63423] AH00035: access to / denied (filesystem path ‘/home/user/domains/c.user.dk/public_html’) because search permissions are missing on a component of the path
so i have a 403, when i change the perms to 755 for the user folder and the public_html its working, but why is this perms not as default when i create the server ?
Is SELinux active? It may have the wrong context for these subdirectories. (Virtualmin normally disables SELinux on installation, as it’s just too confusing and complicated and error-prone for most users.)
I think there pretty much must be at least one of the subdirectories with the wrong group?
Can you check each path leading up to the public_html dir to make sure they’re all group-owned by the domain owner user? That user should be a secondary group for the Apache user, which should allow access all the way up the path. I’m having a hard time seeing any other way for this to happen.
Both servers?
You are testing the same or what trying todo.
Connection between both or?
Only asking , while a error in log noted client acces , so what kind of client. (And what kind of application is that trying to go beyond the paths for example, so setup wrong in paths of aplication itself… )
Sorry to interupt, but i think it should be more clear what he try todo the use case itself. i hope
Are you doing domain creation with virtual server creation on the box itself and the user for it? I know sorry pro is here somewhat differnt so keep futher my mouth shut.
Is the domain name really 011235813? I’m not sure how well all system tools handle an all-numeric user or group name. Is this happening only on numeric named domains? (You’d said above “new domains”, but maybe the problem is not that they’re new, but that they have a name that tickles a bug or limitation in the system.)
hm ja i have try with a test domain test.linuxhus.bla and it works. there are no numbers in username and group. I will try to backup a number diomain and recreate the domain with other users and groups
ok have changed the user to ‘nine’ and group ‘nine’ so the domain 011235813.bla have nine:nine and perms 750 but is the same. on my other domain is this working hm