HostOnNet Blog

Category Archives: Linux

Server Load

When your server is under load, you need to identify the bottleneck. This can be CPU, Memory or Disk IO. Here are some of the useful commands that help you identify cause of high server load. uptime uptime is the


AH01215: Can’t locate CGI.pm in @INC

On a web site using xpanel control panel (free hosting script created with perl), i get error This is because perl-CGI module was missing on the server. On CentOS 7 server, you can install it with command


Find SSL certificate details with OpenSSL

Encrypt files using OpenSSL Generate random string using OpenSSL Generate Self Signed SSL If you have .crt file, you can find more details about the certificate with command To get details of SSL installed on a web site, use csr


fail2ban-client

fail2ban-client can be used to interact with fail2ban jails. To see help, run To see status of jails, run To see status of a jail, run To view value of a setting, run To change a value in run time,


Installing MongoDB on Ubuntu

To install mongodb on Ubuntu, run To check version of mongodb installed, run root@backup:~# mongo –version MongoDB shell version: 2.6.10 root@backup:~# Install latest version from Mongodb.com The mongodb provided by your operating system maybe older, to get latest stable version,


Ubuntu working to smooth Unity 7 to GNOME transition

Canonical, developer of popular Ubuntu linux distro will be replacing Unity Desktop Environment on Ubuntu with GNOME. They were working on Unity 8 and Mir display server, but decided to discontinue the development after they stop development of Mobile OS.


tee linux command

tee is a linux command that allows you to redirect out put of a command to STDOUT (console) and a file. This is helpful when you want to see result of a long running process, also want to save it


ssh-keygen

ssh-keygen command is used to create SSH key used for password less login. To create SSH key, run By default SSH keys will be stored in .ssh folder on your home directory. Your public key will be ~/.ssh/id_rsa.pub, this you


mtr using udp

After changing to new Internet Service Provider (RailWire), mtr stopped working properly. boby@hon-pc-01:~$ mtr -rw yahoo.com Start: Tue Jun 20 08:54:01 2017 HOST: hon-pc-01 Loss% Snt Last Avg Best Wrst StDev 1.|– 192.168.1.1 0.0% 10 2.7 3.2 1.9 7.2 1.5


Install phpMyAdmin in RHEL/CentOS/Ubuntu/Debian

phpmyadmin auto login Installing phpMyAdmin for multiple servers Ubuntu 16.04 PhpMyAdmin root login problem Download latest version of phpMyAdmin from http://www.phpmyadmin.net/home_page/downloads.php You need to edit /usr/hostonnet/phpmyadmin/config.inc.php and set a random string for $cfg[‘blowfish_secret’] You can use any 32 char length