Read subdomains and doc root paths list in a plugin

matkra

Verified User
Joined
Sep 20, 2018
Messages
33
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 ?
 
Back
Top