loopforever
Verified User
This guide is no longer applicable.
Please view:
http://directadmin.com/installguide.html
For the DirectAdmin installation guide!
------------------------------------------------------------
The purpose of this HOWTO is to give DirectAdmin newbies a "to-the-point" method of getting their new server set up. With this said, let's get started setting up our server!
Just a note before we begin, you will see tags like this: [TAB], [ESC], [ENTER] in this guide. They simply mean to hit that key on your keyboard.
Additionally, this guide is for a bare-naked machine (fresh/clean install of Redhat 8), so you may skip some features listed in this guide, if you need to.
Register with RedHat Network
If you are not registered already, just type the following to do so now:
Fill out all the fields on-screen, and you'll be set to go in no time.
Make sure ifconfig is in your PATH
Note the path to the binary, and then type:
More than likely, ifconfig will be found in /sbin.
Disable Telnet
The first thing we will do, before anything else, is disable Telnet. We are doing this because SSH exists, and Telnet is simply useless, and too insecure for us. Depending on your setup, the method for turning telnet off may vary. If you are running xinetd, all that is needed is to do the following:
Find the "disabled" field and set it to "yes". Then:
Install/Upgrade Webalizer
The DirectAdmin installation requires Webalizer to be installed. The easiest way to do this, is to go to www.rpmfind.net and find the latest version for your OS distribution. If you are using RH8, like I am, you can do the following:
Ensure GCC is Installed
Next, we will upgrade GCC. We'll want to most recent version before we install DirectAdmin:
Additionally, we need pam-devel, bison, and flex. So, run these commands also:
Ensure named Configuration Exists
We'll also need to check that named is configured properly. Type:
If it does not exist, do this:
Install DirectAdmin
We are now ready to begin installing DirectAdmin:
Replace yourlid with your License ID and youruid with your user ID:
Now confirm that you've downloaded the file successfully by running:
The file size should be around 2.5mb. If it is not, try removing the file and downloading it again.
Next, we can untar the file and begin the installation:
Now check that getInfo.sh set everything up properly, by running:
If there is something you need to change, edit setup.txt to your liking. Then continue on:
Please view:
http://directadmin.com/installguide.html
For the DirectAdmin installation guide!
------------------------------------------------------------
The purpose of this HOWTO is to give DirectAdmin newbies a "to-the-point" method of getting their new server set up. With this said, let's get started setting up our server!
Just a note before we begin, you will see tags like this: [TAB], [ESC], [ENTER] in this guide. They simply mean to hit that key on your keyboard.
Additionally, this guide is for a bare-naked machine (fresh/clean install of Redhat 8), so you may skip some features listed in this guide, if you need to.
Register with RedHat Network
If you are not registered already, just type the following to do so now:
Code:
up2date --register
Make sure ifconfig is in your PATH
Code:
locate ifconfig
Note the path to the binary, and then type:
Code:
export PATH=$PATH:/path/to/bindir
Disable Telnet
The first thing we will do, before anything else, is disable Telnet. We are doing this because SSH exists, and Telnet is simply useless, and too insecure for us. Depending on your setup, the method for turning telnet off may vary. If you are running xinetd, all that is needed is to do the following:
Code:
vi /etc/xinetd.d/telnet [ENTER]
Code:
[ESC] :wq [ENTER]
/etc/rc.d/init.d/xinetd reload [ENTER]
The DirectAdmin installation requires Webalizer to be installed. The easiest way to do this, is to go to www.rpmfind.net and find the latest version for your OS distribution. If you are using RH8, like I am, you can do the following:
Code:
up2date -u webalizer [ENTER]
Next, we will upgrade GCC. We'll want to most recent version before we install DirectAdmin:
Code:
up2date -u gcc [ENTER]
Code:
up2date -u pam-devel [ENTER]
up2date -u bison [ENTER]
up2date -u flex [ENTER]
We'll also need to check that named is configured properly. Type:
Code:
less /etc/named.conf [ENTER]
Code:
wget [url]http://66.51.122.131/named.conf[/url] -O /etc/named.conf [ENTER]
wget [url]http://66.51.122.131/named.ca[/url] -O /var/named/named.ca [ENTER]
We are now ready to begin installing DirectAdmin:
Code:
mkdir /usr/local/directadmin [ENTER]
cd /usr/local/directadmin [ENTER]
Code:
wget [url]https://www.directadmin.com/cgi-bin/daupdate?lid=yourlid\&uid=youruid[/url] -O /usr/local/directadmin/update.tar.gz [ENTER]
Code:
ls -lh /usr/local/directadmin/update.tar.gz [ENTER]
Next, we can untar the file and begin the installation:
Code:
tar xvzf update.tar.gz [ENTER]
cd /usr/local/directadmin/scripts [ENTER]
./getInfo.sh [ENTER]
Code:
cat ./setup.txt [ENTER]
Code:
./install.sh [ENTER]
Last edited: