Using a custom VirtualHost template in DirectAdmin
If you wish to change the setup of the VirtualHosts for all domains, you can do so by creating your own custom templates.
cd /usr/local/directadmin/data/templates
cp virtual_host*.conf custom
cd custom
Once you’ve copied the 4 VirtualHost files (or just the ones you want) to the custom directory, you can then edit the new files you’ve just copied. DirectAdmin will always check for the custom file before going to the default ones. Failure to copy the virtual_host*.conf files to the custom directory before modifying them will result in a loss of all changes when DirectAdmin updates itself (the files are overwritten).
Once you are happy with your new virtual_host*.conf files they’ll need to be used in the real httpd.conf files. You can trigger DirectAdmin to rewrite all User httpd.conf files by running:
echo “action=rewrite&value=httpd” >> /usr/local/directadmin/data/task.queue
The command will be added the the task queue which is checked once per minute, so it may be a few minutes before all httpd.conf files have been rewritten. *Note: the main /etc/httpd/conf/httpd.conf is never overwritten (unless DirectAdmin is reinstalled) so any changes you make will be safe.
Source: http://directadmin.com/
Uisng quotacheck program in DirectAdmin
DirectAdmin relies on the system quotas to return a value for how much space is being used.
DirectAdmin will run
If the “used” column is not showing anything, or users are not in the list, then you’ll need to run the quotacheck program:
Redhat:
/sbin/quotaoff -a; /sbin/quotacheck -avugm; /sbin/quotaon -a;
FreeBSD:
/usr/sbin/quotaoff -a; /sbin/quotacheck -avug; /usr/sbin/quotaon -a;
If are getting errors and no output is displayed for the repquota command, you’ll need to check your /etc/fstab file to make sure that it contains the rw,userquota,groupquota line beside the partition that is using the quotas.
Important: On Linux (Redhat/Debian), it’s usrquota,grpquota, and on FreeBSD it’s userquota,groupquota.
Reference : http://directadmin.com/
VPS/VDS installs
After the install, add:
for example:
Other systems where the IP is not the base IP on the device, you’d need to simply set the correct number:
or other systems with the IP on a different device, it might be:
type: /sbin/ifconfig to see which device your IP is in, to /usr/local/directadmin/conf/directadmin.conf.
Replace devicename with the FULL devicename reported by ifconfig.
If your VDS/VPS system emulates eth0, then you may skip this step.
Source: DirectAdmin.com
Adding reverse IP Lookup in DirectAdmin
Any modern verion of DA will be able to do this through the interface.
Go to: Admin Level -> DNS Administration
Scroll to the bottom to the “Add Zone” section.
Enter your information normally:
domain name: server.hostname.com
ip: 1.2.3.4
ns1: ns1.hostname.com
ns2: ns2.hostname.com
where server.hostname.com is the hostname of your server. The IP is your server IP (license IP)
and ns1/ns2 can be any NS your server uses.
Click the “Create Reverse IP Lookup” checkbox, then click “Add”.
Reference link: http://directadmin.com
FreeBSD Installation notes for DirectAdmin
If logging in as a user other than admin or root (using su to gain root access)
You have to add “AllowUsers username” to /etc/ssh/sshd_config before you can log out from root or you’ll lose root on the server forever, and you’ll have to format.
Hint: Use “fetch” instead of “wget” on FreeBSD systems to download the install file.