Hello,
I'm trying to write a simple user-level DA plugin (PHP) that (among others) reads a list of all subdomains and its doc root paths. This list is stored in the file: /usr/local/directadmin/data/users/<user>/domains/<domain>.subdomains.docroot.override.
Unfortunately, normal user do not have permission to read it (failed to open stream: Permission denied) because the file is:
-rw------- 1 diradmin diradmin
What is the best way to read the user's subdomain / doc root settings for a specific domain in a plugin ?
I'm trying to write a simple user-level DA plugin (PHP) that (among others) reads a list of all subdomains and its doc root paths. This list is stored in the file: /usr/local/directadmin/data/users/<user>/domains/<domain>.subdomains.docroot.override.
Unfortunately, normal user do not have permission to read it (failed to open stream: Permission denied) because the file is:
-rw------- 1 diradmin diradmin
What is the best way to read the user's subdomain / doc root settings for a specific domain in a plugin ?