Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: DirectAdmin Installation  (Read 5833 times)

0 Members and 1 Guest are viewing this topic.

Vinil

  • Guest
DirectAdmin Installation
« on: November 01, 2013, 02:00:42 am »
To install DirectAdmin on Redhat/CentOS 5.x 32/64-bit, 6.x 32/64-bit machines, follow the below steps:-

1). Before installation, make sure you have purchased DA License. To view your DA license,  sign into your client account at https://www.directadmin.com/clients using your client ID.

Then verify that the server IP address and operating system is correct. Also make sure that the license is active and verified.

2). Now begin the installation


Firstly install the following dependencies using yum:-

yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which

Now login as root and download the setup.sh file. Make sure to give execute permission for the script.

# wget http://www.directadmin.com/setup.sh
# chmod 755 setup.sh
# ./setup.sh



3). During installation, you will prompted to enter the following details:-

Please enter your Client ID : xxxxx           (enter your client ID)
Please enter your License ID : xxxxx         (enter the license ID, for example 12345)
Please enter your hostname \(server.domain.com\)
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don't use domain.com. Use server.domain.com instead.
Do not enter http:// or www

Enter your hostname (FQDN) :  xxxxx.xxxxx.com         (as per above instructions, please enter a hostname as like server.yourdomain.com)


4). You need to confirm the above given details in the following steps:-

Client ID: xxxxx
License ID: xxxxx
Hostname: xxxxx.xxxxx.com
Is this correct? (y,n) : y               (if correct, give yes)
The following ethernet devices/IPs were found.
Please enter the name of the device you wish to use:
eth0 xxx.xxx.xxx.xxx
eth1

If you are not sure about this, then check which ETH adapter is using your public IP address using the command 'ifconfig'.

Enter the device name: xxx     


Is xxx.xxx.xxx.xxx the IP in your license? (y,n) : y
DirectAdmin will now be installed on: Enterprise 5.7
Is this correct? (must match license) (y,n) : y
You now have 4 options for your apache/php setup.
1: customapache: end-of-life software. Includes Apache 1.3, php 4 and frontpage.
2: custombuild 1.1:end-of-life software. Apache 2.x, php 4, 5 or both in cli and/or suphp. Defaults to php 5.2
3: custombuild 1.2:Production version: Apache 2.x, php 5, 6, or both in cli and/or suphp. defaults to php 5.3
4: custombuild 2.0 BETA: Apache 2.4, mod_ruid2, php 5.5. Can be set to use php-FPM or fastcgi.

Enter your choice (1, 2, 3 or 4): 3         (better to choose option 3)
You have chosen custombuild 1.2.


5). If all went correctly, installation will be started now. This will be completed within 1-2 hrs.


6). When the installation is completed, you should be ready to login to your newly installed control panel via:-

http://xx.xx.xx.xx:2222

User: admin
Pass: xxxxxx

(where xx.xx.xx.xx is your IP address or domain name. 2222 is the DA port)
The DA username and password could be found from the installation logs or open the below mentioned file.

cat /usr/local/directadmin/scripts/setup.txt

This file contains the detailed information of DA including the username and password.



Thanks   :)
« Last Edit: November 01, 2013, 02:11:13 am by Vinil »