Author Archives: admin

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.

Rsync on different port then 22

If you need to use rsync for data transfer (fast) from box to box and you have different ssh port setup then this use this:

rsync -avz -e "ssh -p $port" user@remoteip:/path/to/data/ /local/path/data/

or vice versa

rsync -avz -e "ssh -p $port" /local/path/data/ user@remoteip:/path/to/data/

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.

Laravel storage symbolic link

When you need to use storage use this:

ln -s /home/admin/domains/domain.com/app/storage/app/public/svetvesti_img /home/admin/domains/domain.com/public_html/svetvesti_img

ln -s is symbolic link source destination.

If you want to update symbolic link after, for example changing server (dedi or vps) then use this:

Creation -> ln -s {/path/to/file-name} {link-name}
Update -> ln -sfn {/path/to/file-name} {link-name}

Stay away from ArubaCloud (Aruba Cloud) – worst of all hosting providers

So, a little rant here.Its about ArubaCloud (Aruba Cloud). In the afternoon I get this email about my credit ran out and that I need to top up my account with dollars/euros.Ok. But I already paid. Trying to login, ok, I can.But when I try to access my vpss I cannot. I just cannot enter control panel. I clicked here and there to see what seems to be the problem and in one moment I thought they had some problem with their business. OK. I try to search for aruba cloud status and check if something went wrong with them. No status page. OK 🙂

I’m sending them email. In searching for problem I see I’m suspended. 🙂 What for?No email no nothing. I’m not doing anything wrong either. Since 2002. That’s the date I started working online.

Email came in the box. It’s them. They say now, after 2h I’m suspended but not because of what.

To cut story short…they want me, after year from using their services, to send valid ID and receipt etc…What? Maybe they are joking…I’m still waiting for their reply.

STAY AWAY FROM ARUBA CLOUD (ARUBACLOUD).

This never happened in my 16 years old internet life. They might ask that when I started paying but now with my sites down and files locked there…this is just rude from the business side. Ransom it is.

But I DO HAVE BACKUPS…learned long time ago. Sites restored to competitors services.

Update coming…

 

 

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.

Request in Laravel

Nice stuff, very helpfull.

https://laraveldaily.com/how-to-check-current-url-or-route/

Read whole post and then follow the link in comments to another theme to search for the solution to even bigger problem.

OVH.IE no VAT validation

ovh.ie

If you have ordered services from ovh.ie and you are not living in an EU country do this to avoid unnecessary vat tax.

http://forum.ovh.co.uk/showthread.php?8469-VAT-Removal-Account-Validation-queries-for-OVH-IE-customers-only