Customizing Admin

How to change the Admin email address

To change the Admin email address, simply change the E-mail option under Admin's user data. You can do this via DirectAdmin by logging in as Admin and editing the Admin's User data, or via SSH like so:

vim /usr/local/directadmin/data/users/admin/user.conf

How to add more files to the Admin File Editor

If you'd like to add more files to the feature Admin Level -> File Editor you can do so by typing:

cd /usr/local/directadmin/data/templates/custom
cp ../edit_files.txt .

and then edit the copied edit_files.txt file, and add whatever lines you'd like.

See the documentation on the feature for the required syntax:
http://www.directadmin.com/features.php?id=576open in new window

How to add your own service to DirectAdmin monitoring

The DirectAdmin panel uses dataskq to check if services are running and start a service if it is down. The actual list of services is in the file:
/usr/local/directadmin/data/admin/services.status
With syntax:

servicename=ON

Where ON means the dataskq will monitor it, and OFF means it won't.

You can add your own service into the list.

Like the other services, if you click "Stop" from within DA, DA will set this value to OFF so that the dataskq doesn't try to start it. Likewise, if you click "start", DA will set it to ON in the service.status file, then DA will start to monitor it.

How to add more log files to be visible from Admin Log Viewer

The logs shown in the Log Viewer are taken from /usr/local/directadmin/data/templates/logs.list.

You may copy it to custom directory and add your own logs or remove any existing, e.g.,

mkdir -p /usr/local/directadmin/data/templates/custom
cd /usr/local/directadmin/data/templates/custom
cp -p ../logs.list .

Then edit the logs.list in the custom directory.

Last Updated: