Category Archives: DirectAdmin

DirectAdmin skin upgrade/downgrade

I have installed new vps with directadmin control panel. Tried to log in and got myself into new skin. I do like it but I’m old kinda type of programmers…I like it to be simple. All those ajax calls I don’t actually like.

To cut the long story short…go to resellers…skin manager…and then setup global skin and apply to all.

DirectAdmin transfer

I have just transferred directadmin server to server. It was, well, easy I would say. If you know what you are doing then it is.

Server had CSF installed as well.

First use DA admin backup on server A, transfer via ssh to server B, then use restore on server B from DA admin/restore backup. Use new IP address from the dropdown list. Backup CSF and transfer it to the next server (follow the path when backing up…correct folder).

Next, on the server A revoke Let’s encrypt for domain name server (IP you have used for nameserver): https://help.directadmin.com/item.php?id=2084
Then install Let’s encrypt: https://help.directadmin.com/item.php?id=648
Then this: https://help.directadmin.com/item.php?id=629

Then install CSF from here https://help.directadmin.com/item.php?id=527. Use option 3. Restore previously CSF backup.

Next, install custombuild plugin.

Next, I like to use this tool for installing PECL extensions.
https://help.poralix.com/articles/install-pecl-extension-for-php-directadmin-server

Next, enable forced SSL for each domain.

DirectAdmin changing nameserver and redirecting to new domain name instead of IP

I had a problem. I needed to change domain name of the server – aka nameserver. It was already using some other name so the problem is there. After changing nameserver it didn’t work. It was redirecting me back to the old nameserver.

Solution:

  1. https://help.directadmin.com/item.php?id=405
  2. You need to update let’s encrypt with the new nameserver ( https://help.directadmin.com/item.php?id=629 )
  3. https://www.directadmin.com/features.php?id=801
  4. Mass update dns for all domains – https://help.directadmin.com/item.php?id=141

That’s it.

DirectAdmin webalizer problem – solved

I have just had an error when trying to reinstall webalizer in DirectAdmin.

Libgd error was echoing. So I was looking for reproduce problem and found a solution.

https://fedoraproject.org/wiki/EPEL // install repo for gd-devel

yum install gd-devel // install gd

./build webalizer

###### and voila
rm -f /usr/bin/webazolver
ln -s webalizer /usr/bin/webazolver
/usr/bin/install -c -m 644 webalizer.1 /man/man1/webalizer.1
/usr/bin/install -c -m 644 wcmgr.1 /man/man1/wcmgr.1
rm -f /man/man1/webazolver.1
ln -s webalizer.1 /man/man1/webazolver.1
/usr/bin/install -c -m 644 sample.conf /usr/etc/webalizer.conf.sample
[root@online custombuild]# webalizer
Webalizer V2.23-08 (Linux 3.10.0-862.14.4.el7.x86_64 x86_64) English
Using logfile STDIN (clf)
Creating output in current directory

That’s it.