Lost the Direct Admin admin password

It will be in /usr/local/directadmin/scripts/setup.txt if you haven’t delete it yet or changed the password. If you have already changed it after install: – To change it from ssh as root you can just type: passwd admin ** note that DA changes quite a few things when the passwords are

Install Direct Admin on FreeBSD

Step 1) Do you meet the system requirements? – Clean OS FreeBSD 4.7, 4.8, 4.9, 4.10, 4.11, 5.0, 5.1, 5.2, 5.2.1, 5.3, 5.4, 6.0, 6.1 – At least one external IP address (NAT/LAN-based systems will NOT work) – SSH installed, gcc installed (these are usually standard with 99% of systems)

Install Direct Admin on Linux systems

Step 1) Do you meet the system requirements? – Clean OS install: Redhat 7.2, 7.3, 8.0, 9.0, Fedora (any version), CentOS (any version). PS :- The setup file for Redhat also works for Fedora and CentOS (any version). – At least one external IP address (NAT/LAN-based systems will NOT work).

Install SSL for Direct Admin

Setup SSL Certificates for Direct Admin: This step is only required if you wish to use DirectAdmin through SSL. You will also have to change set SSL=1 in the directadmin.conf file. ( /home/directadmin/directadmin.conf ) # openssl req -new -x509 -keyout /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cacert.pem # openssl rsa -in /usr/local/directadmin/conf/cakey.pem.tmp -out /usr/local/directadmin/conf/cakey.pem

Reinstall Apache in Direct Admin

SSH to the server as root and run the following: cd /usr/local/directadmin mkdir customapache cd customapache wget https://files.directadmin.com/services/customapache/build chmod 755 build ./build update ./build all

Upgrade PHP4 to PHP5 in Direct Admin control panel

SSH to server as root and then perform the following: https://www.directadmin.com/forum/showthread.php?s=&threadid=5663&highlight=php5 * Compile the PHP 5 lib for Apache * – Download php to a temporary directory (https://www.php.net/downloads.php) – cd [the temporary directory] – tar zxvf php-5.0.x.tar.gz – cd php-5.0.x – /usr/local/directadmin/customapache/configure.php ( _ap2 for Apache2) – make – make

Rebuild/restore the named.conf file on a Direct Admin server

1) SSH to server as root. 2) cd /etc 3) cp named.conf named.conf.BAK 4) wget -O /etc/named.conf https://www.directadmin.com/named.conf 5) then run: for i in `cat /etc/virtual/domains`; do { echo “zone \”$i\” { type master; file \”/var/named/$i.db\”; };”; }; done; >> /etc/named.conf

How do I rebuild/restore the named.conf file on a Direct Admin server?

1) SSH to server as root. 2) cd /etc 3) cp named.conf named.conf.BAK 4) wget -O /etc/named.conf https://www.directadmin.com/named.conf 5) then run: for i in `cat /etc/virtual/domains`; do { echo “zone \”$i\” { type master; file \”/var/named/$i.db\”; };”; }; done; >> /etc/named.conf

How do I upgrade PHP4 to PHP5 in Direct Admin control panel?

SSH to server as root and then perform the following: https://www.directadmin.com/forum/showthread.php?s=&threadid=5663&highlight=php5 * Compile the PHP 5 lib for Apache * – Download php to a temporary directory (https://www.php.net/downloads.php) – cd [the temporary directory] – tar zxvf php-5.0.x.tar.gz – cd php-5.0.x – /usr/local/directadmin/customapache/configure.php ( _ap2 for Apache2) – make – make