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

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

List Subdomains in WHM

Overview WebHost Manager (WHM) enables you to list all subdomains on your server. This function will display all subdomains and parked domains, sorted by domain name.   Steps To list out your subdomains using WHM, just follow these steps: To access the Account Information Menu, click on Account Information, on

List Parked Domains in WHM

Overview This function allows users to display all domains that are parked on top of other domains.   Steps To see a list of all parked domains, just follow these steps: To access the Account Information Menu, click on Account Information, on the main screen of your WebHost Manager interface.

How to downgrade from apache 2 back to apache 1.3

If you need to go back to apache 1.3 after installing apache 2, you’ll need to do the following: 1) Restore the old httpd.conf file: cp -f /etc/httpd/conf/httpd.conf.1.3.backup /etc/httpd/conf/httpd.conf 2) Get DirectAdmin to use the old httpd.conf files for the users. Edit the /usr/local/directadmin/conf/directadmin.conf file and change apache_ver=2.0 to apache_ver=1.3.

How to compile wget for your system

Sometimes the precompiled wget binaries refuse to work with your ssl linked libraries. The simple solution is to compile a new wget binary to be used with your ssl libraries. wget https://files.directadmin.com/services/wget-1.8.2.tar.gz tar xvzf wget-1.8.2.tar.gz cd wget-1.8.2 ./configure –prefix=/usr –with-ssl make make install If you’re using FreeBSD, you’d need to

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