This document has two sections:
- Deploying preinstalled DirectAdmin OS template
- Manual installation
Deploying preinstalled DirectAdmin OS template
You can quickly install DirectAdmin by using a preinstalled operating system template. For this, go in Hypanel to Machine settings and chooseReinstall machine. On the reinstall machine form choose OS Template Centos 5 32-bit & DirectAdmin, enter the root password and clickReinstall.
After deploying this image you need to do some postinstall steps to be ready to use DirectAdmin:
- Update DirectAdmin with your hostname. Log in to SSH by using root account and run:
cd /usr/local/directadmin/scripts ./hostname.sh my.hostname.com
In the command above replace my.hostname.com with your hostname that was used when requesting the DirectAdmin license. Note that you need a FQDN (Fully Qualified Domain Name) as hostname (that is a "subdomain.domain.com" not just "myhost"). - Contact support and ask for your DirectAdmin licensing information (you will need to have a paid order with DirectAdmin for this).
- Log in to SSH on your VPS and update the licensing information by running:
cd /usr/local/directadmin/scripts ./getLicense.sh 1234 56789
and replace 1234 with your client ID number, and replace 56789 with your license ID number. - Start DirectAdmin with the new license:
/etc/init.d/directadmin restart
Run the ipswap.sh script to replace the old server IP (188.240.47.26) with the new server IP (1.2.3.4). Note that IP address 188.240.47.26 was used when installing this template and 1.2.3.4 is considered to be your main IP address. Replace it with the your main IP address that you find in Hypanel.
cd /usr/local/directadmin/scripts ./ipswap.sh 188.240.47.26 1.2.3.4
- Restart everything:
/etc/init.d/httpd restart /etc/init.d/proftpd restart /etc/init.d/exim restart /etc/init.d/dovecot restart etc.
- DirectAdmin can be accessed at http://server.ip.address:2222
- Your DirectAdmin user name is admin. To reset the admin password login to your VPS via SSH and use this command:
passwd admin
and enter your new password twice.
Update your DirectAdmin installation before you start using it. Files in the template may be outdated.
if you want to update DirectAdmin manually you can follow these steps
See more information about how to change DirectAdmin machine IP address at http://help.directadmin.com/item.php?id=250 .
Manual installation
Here's the official DirectAdmin installation guide: http://www.directadmin.com/installguide.html.
Contact support in order to obtain your licensing information.
Optional step to update DirectAdmin
To update DirectAdmin manually just in case the automatically update process does not work, run following commands:
cd /usr/local/directadmin
wget -O update.tar.gz https://www.directadmin.com/cgi-bin/daupdate?uid=YourClientID\&lid=YourLicenseID
tar xvzf update.tar.gz
./directadmin p
cd scripts
./update.sh
service directadmin restart