iftop

iftop show bandwidth usage like top show cpu and memory usage. To see network usage, run iftop If you have multiple network interface, you need to specify network interface to monitor, this can be done with -i option iftop -i eth1 To install on CentOS, run yum install iftop For installing from source, see Install … Read more

monit

See gonit golang replacement for monit monit is a process monitoring service that monitor services, restart if required. https://mmonit.com/monit/ Install monit Install Monit on Ubuntu Install Monit on CentOS monit configuration Auto restart elasticsearch with monit Start meguca on boot Monitor OpenLiteSpeed with monit Here are monit rules used to monitor apache, php-fpm and MySQL … Read more

rtorrent

rtorrent is a command line torrent client. https://github.com/rakshasa/rtorrent This can be run from SSH connection/terminal. CTRL + S Start torrent. CTRL + Q Quit torrent. CTRL + D Delete selected torrent. You can use arrow keys to select torrent to delete. Download Magnet Link 1. Press Enter 2. Paste Magnet link. 3. Press Enter.

Amazon Elastic IP The maximum number of addresses has been reached.

When assigning Elastic IP in Amazon AWS, I get an error The maximum number of addresses has been reached. This is because Amazon only allows 5 Elastic IP address per region. You can see the AWS service limits at http://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html You can open a support ticket with Amazon, they will increase the Elastic IP limit. … Read more

WordPress bitnami

Install LetsEncrypt SSL on Bitnami To stop/start service use ctlscript.sh root@ip-172-31-26-46:~# /opt/bitnami/ctlscript.sh usage: /opt/bitnami/ctlscript.sh help /opt/bitnami/ctlscript.sh (start|stop|restart|status) /opt/bitnami/ctlscript.sh (start|stop|restart|status) mysql /opt/bitnami/ctlscript.sh (start|stop|restart|status) php-fpm /opt/bitnami/ctlscript.sh (start|stop|restart|status) apache help – this screen start – start the service(s) stop – stop the service(s) restart – restart or start the service(s) status – show the status of the service(s) … Read more

Mail

Mail Server These software once installed will provide complete mail server including web mail. Business Email Free Email Forwarding Mail DNS Settings Webmail Email Marketing Newsletter Encrypted Email Email Clients for Linux To install mail command. on Debian, run on CentOS To send a test email, run To specify sender address, use -r option

Amazon EFS

Amazon EFS can be used to mount same drive on multiple EC2 instances allowing you to make the website scale on multiple web servers. To mount EFS drive on Ubuntu, you need to install To mount a EFS drive, run Here is fstab entry for auto-mounting the EFS file system on boot. In this example, … Read more

Nginx Configuration for phpMyAdmin

On Debian 9 server with nginx, i installed phpmyadmin with apt install phpmyadmin For some reason, ip-address/phpmyadmin did not work. On Ubuntu, it normally ask for for web server you have installed, then configure it during install. I got this working by adding following code location /phpmyadmin { root /usr/share/; location ~ ^/phpmyadmin/(.*\.php)$ { include … Read more

vnstat

vnstat command shows bandwidth usage on your system. [root@server12 ~]# vnstat Database updated: Wed Dec 13 06:51:43 2017 eth0 since 11/04/13 rx: 4.81 TiB tx: 63.40 TiB total: 68.21 TiB monthly rx | tx | total | avg. rate ————————+————-+————-+————— Nov ’17 94.81 GiB | 2.02 TiB | 2.11 TiB | 7.00 Mbit/s Dec ’17 … Read more