Systemlink from html folder to domain

Pascal Lieverse

New member
Feb 4, 2019
Currently I am working on a cms system where users can whitelist the csm with using there own domain. The user will setup that the domain is pointing to our server in an external dns server.

Now I am trying to setup a system link from /var/www/html/ to the home folder of the domain where the cms is running at /home/cmsuser/domains/cmsdomain/public_html/
But the webapps user dont have access to this folder. I already added the webapps user to the usergroup of the cmsuser but that's not working. I also tried to set the default user to the cmsuser of /var/www/html but that is also not working.

Someone has an idea how I could fix the permissions so I can make a system link to an existing domain?

The server is running on:
CentOS Linux release 7.5.1804
Apache 2.4.35
DirectAdmin 1.54.1


Super Moderator
Apr 11, 2005
GMT +7.00
Hello Pascal,

For symlinks to work in Apache/NGINX their owner should match a target file/directory. If owners do not match you will get an error.
I'd suggest that you try a different approach for your tasks:

- change document dir of your application
- change location of your files
- use mount --bind
- other