Knowledge Base

Before changing MySQL root password you may try to recover default installation password. DirectAdmin MySQL root password is set within the installation process and written down to setup.txt. If you didn’t change this password you can find the default one in the setup.txt, use the command below to see the contents of /usr/local/directadmin/scripts/setup.txt: your password […]

There are some important processes after successfully installation of DirectAdmin and if you miss these steps, the system may not work efficiently. After logged in with the admin user: (default admin password is located at: /usr/local/directadmin/scripts/setup.txt) Add an additional IP for the second DNS Server, to do so, click to the “IP Management” link in […]

If you prepared your server with the directives we mentioned on the previous article, it will be so much easy to install DireactAdmin software. You must download the setup file from DirectAdmin site: Download DirectAdmin setup file & run: mkdir /root/DA cd /root/DA wget http://www.directadmin.com/setup.sh sh setup.sh Steps to follow: DirectAdmin setup will ask you […]

DirectAdmin is one of the mostly used Hosting Control Panels around, for single server installations it is easy to setup and start selling hosting busines, some advantages of DirectAdmin are; Easy to install, can be installed on a VPS or VDS also Less overhead, minimal code Easy to maintain & upgrade Easy to modify wtihout […]

Adding a task into crontab is relatively easy. You just enter the crontab with “$ crontab -e” and add the necessary job, save and exit. But adding a job in your bash script is not that simple, because what you have to do is, to get the entire list of the jobs, append your new […]

The other day we were working on a mail server of a customer’s that spammed insanely. Since the mail transfer agent it uses is exim, it’s necessary to check the mainlog files. Whilst doing that, we realized the server was getting a lot of incoming mails as forgery. So, it is possible to get the […]

I just added my whm/cpanel server to backup pool. I got the following error when trying to back up: Fatal error (bad version): stdin: is not a tty fileListReceive() failed Done: 0 files, 0 bytes Got fatal error during xfer (fileListReceive failed) Backup aborted by user signal Solution: I found that I had “mesg y” on […]

Here’s a simple bash script snippet I use for detecting the OS information on the current system. #!/bin/bash ### Getting OS Information if [ -f /etc/lsb-release ]; then . /etc/lsb-release DIST=$DISTRIB_ID DIST_VER=$DISTRIB_RELEASE else DIST=”Unknown” DIST_VER=”Unknown” fi if [ -f /etc/debian_version ]; then OS=”Debian” VER=$(cat /etc/debian_version) elif [ -f /etc/redhat-release ]; then OS=”Red Hat” VER=$(cat /etc/redhat-release) […]

Here’s something very basic yet poorly documented. That’s why it looks like almost everybody’s trying to hack their way into this module, the yum module for Python. First of all don’t forget that this module is only available if you’re using a Red Hat branch of distribution (fedora, centos etc.) For other distributions, such as […]