Author Archives: admin

Dedicated/VPS test speed

Very nice find. You can check various speeds from your server with this little script.

I have checked it and it’s working just fine. Kudos to the developer.

https://www.lowendtalk.com/discussion/134290/new-year-special-serverreview-benchmark-v3

I have just tried it with little vps from hetzner:

[root@snapshot-5553580-centos-2gb-nbg1-1 ~]

# curl -LsO git.io/bench.sh; chmod +x bench.sh && ./bench.sh -a

Benchmark started on 06-Jul-2019 07:16:24

## System Information

OS Name : CentOS Linux release 7.6.1810 (Core) N (64 bit)
Kernel : KVM / 3.10.0-957.21.3.el7.x86_64
Hostname : snapshot-5553580-centos-2gb-nbg1-1
CPU Model : Intel Xeon Processor (Skylake, IBRS)
CPU Cores : 1 core @ 2099.998 MHz
CPU Cache : 16384 KB
Total RAM : 1790 MiB (Free 1533 MiB)
Total SWAP : SWAP not enabled
Total Space : 20GB (5% used)
Running for : 23 minutes 6 seconds

## CDN Speedtest

CacheFly : 136.55 MiB/s | 1092.39 Mbps | ping 3.415ms
CDN.net :ping: 993660212.r.worldcdn.net: Name or service not known
0 B/s | N/A | ping error!
Gdrive : 22.61 MiB/s | 180.86 Mbps | ping 3.335ms

## North America Speedtest

Softlayer, Washington, USA : 531.01 KiB/s | 4.15 Mbps | ping 88.651ms
SoftLayer, San Jose, USA : 771.82 KiB/s | 6.03 Mbps | ping 153.363ms
SoftLayer, Dallas, USA : 240.00 KiB/s | 1.88 Mbps | ping 119.020ms
Vultr, New Jersey, USA : 15.26 MiB/s | 122.10 Mbps | ping 80.797ms
Vultr, Seattle, USA : 7.06 MiB/s | 56.45 Mbps | ping 152.982ms
Vultr, Dallas, USA : 7.61 MiB/s | 60.91 Mbps | ping 123.992ms
Vultr, Los Angeles, USA : 5.95 MiB/s | 47.60 Mbps | ping 148.648ms
Ramnode, New York, USA : 4.22 MiB/s | 33.76 Mbps | ping 93.103ms
Ramnode, Atlanta, USA : 3.18 MiB/s | 25.44 Mbps | ping 109.802ms
OVH, Beauharnois, Canada : 1.23 MiB/s | 9.87 Mbps | ping 89.242ms

## Europe Speedtest

Vultr, London, UK : 70.07 MiB/s | 560.54 Mbps | ping 17.909ms
LeaseWeb, Frankfurt, Germany : 203.57 MiB/s | 1628.57 Mbps | ping 3.728ms
Hetzner, Germany : 121.62 MiB/s | 972.94 Mbps | ping 0.270ms
Ramnode, Alblasserdam, NL : 81.99 MiB/s | 655.92 Mbps | ping 10.764ms
Vultr, Amsterdam, NL : 115.90 MiB/s | 927.20 Mbps | ping 9.734ms
EDIS, Stockholm, Sweden : 2.44 KiB/s | 0.02 Mbps | ping 29.973ms
OVH, Roubaix, France : 101.74 MiB/s | 813.95 Mbps | ping 11.424ms
Online, France : 89.67 MiB/s | 717.36 Mbps | ping 12.747ms
Prometeus, Milan, Italy : 99.90 MiB/s | 799.21 Mbps | ping 15.812ms

## Exotic Speedtest

Sydney, Australia : 755.84 KiB/s | 5.91 Mbps | ping 307.885ms
Lagoon, New Caledonia : 1.13 MiB/s | 9.05 Mbps | ping 354.923ms
Hosteasy, Moldova : 26.20 MiB/s | 209.60 Mbps | ping 37.409ms
Prima, Argentina : 174.20 KiB/s | 1.36 Mbps | ping error!

## Asia Speedtest

SoftLayer, Singapore : 645.17 KiB/s | 5.04 Mbps | ping 179.195ms
Linode, Tokyo, Japan : 2.61 MiB/s | 20.89 Mbps | ping 268.694ms
Linode, Singapore : 5.90 MiB/s | 47.22 Mbps | ping 211.743ms
Vultr, Tokyo, Japan : 2.51 MiB/s | 20.08 Mbps | ping 251.989ms

## IO Test

CPU Speed:
bzip2 512MB – 83.2 MB/s
sha256 512MB – 261 MB/s
md5sum 512MB – 330 MB/s

Disk Speed (512MB):
I/O Speed – 495 MB/s
I/O Direct – 63.4 MB/s

RAM Speed (895MB):
Avg. write – 1654.5 MB/s
Avg. read – 4949.3 MB/s

Benchmark finished in 129 seconds
results saved on /root/bench.log

[root@snapshot-5553580-centos-2gb-nbg1-1 ~]

#

MariaDB/MySql server – load data infile

When using php7.2 and onward make sure you are having:
mysqli.allow_local_infile = On
in php.ini setup or uncommented.

Otherwise this will not work. I’ve spent 2 days trying to make it working on mariaDB config file because few years ago I had the same problems and most of it were on DB end (optimization) but now this totally surprised me. It was on php end.

This is really nice stuff. Check it

https://stackoverflow.com/questions/13016797/load-data-local-infile-fails-from-php-to-mysql-on-amazon-rds?rq=1

Please not…ini_set is not always working so you might need to change allow_local_infile directly to the server’s php.ini for specific php version. I’m using directadmin almost every day. Have 3 php versions installed and testing everything there.

CodeIgnitier paths explained

Simple, fast, easy…

SELF = if you need index.php

If you want to include something from your root folder
FCPATH = C:\xampp\htdocs\root\

If you need to include something from your application folder
APPPATH = C:\xampp\htdocs\root_folder\application\

If you need to include something from your system folder
BASEPATH = C:\xampp\htdocs\root_folder\system\

That’s it.

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.

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…