Use a File for Additional Swap Space

The following dd command example creates a swap file with the name “swapfile” under /root directory with a size of 8192MB (8GB). To create the swap space (non-persistent): Change the permission of the swap file so that only root can access it. Make this file as a swap file using mkswap command. Enable the newly … Read more

Install Zabbix agent on Ubuntu

For Ubuntu 16.04 LTS: For Ubuntu 14.04 LTS: Install Zabbix Agent Edit Zabbix Agent Configuration After adding zabbix server ip in configuration file, now restart agent service using below command. # /etc/init.d/zabbix-agent start # /etc/init.d/zabbix-agent stop

How can I keep my SSH sessions Alive

Here is how to keep your ssh session from freezing and how to keep ssh alive. Edit your ssh config file. Change to the following variables Then, restart ssh On CentOS: TCPKeepAlive – is there to ensure that certain firewalls don’t drop idle connections. ClientAliveInterval – the server will wait 60 seconds before sending a … Read more

Disk I/O Stats in linux

Sysstat

For disk I/O trending there are a few options. the sar command from sysstat. By default, it gives output like this:

# sar
Linux 2.6.32-642.11.1.el6.x86_64 (test.geekdecoder.com)    01/26/2017      _x86_64_        (2 CPU)

12:00:01 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
12:10:01 AM     all      0.03      0.00      0.03      0.09      0.00     99.85
12:20:01 AM     all      0.27      0.00      0.04      0.00      0.00     99.69
12:30:01 AM     all      0.33      0.00      0.05      0.00      0.00     99.62
12:40:01 AM     all      1.01      0.00      0.18      1.18      0.00     97.63
12:50:01 AM     all      0.15      0.00      0.04      0.00      0.00     99.80
01:00:01 AM     all      0.16      0.00      0.03      0.00      0.00     99.80
01:10:01 AM     all      0.22      0.00      0.04      0.00      0.00     99.74
01:20:01 AM     all      0.36      0.00      0.05      0.00      0.00     99.59
01:30:01 AM     all      0.23      0.00      0.04      0.00      0.00     99.74
01:40:01 AM     all      0.70      0.00      0.25      6.23      0.00     92.82
01:50:01 AM     all      0.13      0.00      0.03      0.00      0.00     99.83
02:00:01 AM     all      0.16      0.00      0.04      0.00      0.00     99.80
02:10:01 AM     all      0.21      0.00      0.04      0.00      0.00     99.75
02:20:01 AM     all      0.30      0.00      0.04      0.00      0.00     99.66
02:30:01 AM     all      0.14      0.00      0.03      0.00      0.00     99.83
02:40:01 AM     all      0.20      0.00      0.03      0.00      0.00     99.76
02:50:01 AM     all      0.32      0.00      0.05      0.00      0.00     99.63
03:00:01 AM     all      0.21      0.00      0.03      0.00      0.00     99.76
03:10:01 AM     all      0.19      0.00      0.04      0.00      0.00     99.77
03:20:01 AM     all      0.12      8.44      2.69     10.79      0.00     77.96
03:30:01 AM     all      0.13      4.52      8.36      0.30      0.00     86.69
03:40:01 AM     all      0.48      0.00      0.05      0.02      0.00     99.45
03:50:01 AM     all      0.15      0.00      0.04      0.01      0.00     99.80
04:00:01 AM     all      0.13      0.00      0.03      0.00      0.00     99.84
04:10:01 AM     all      0.48      0.00      0.06      0.04      0.00     99.43
04:20:01 AM     all      0.17      0.00      0.05      0.11      0.00     99.67
04:30:01 AM     all      0.22      0.00      0.04      0.00      0.00     99.74
04:40:01 AM     all      0.89      0.00      0.08      0.16      0.00     98.87
04:50:01 AM     all      0.55      0.00      0.07      0.05      0.00     99.34
05:00:01 AM     all      0.11      0.00      0.04      0.01      0.00     99.85
05:10:01 AM     all      0.09      0.00      0.03      0.00      0.00     99.87
05:20:01 AM     all      0.17      0.00      0.04      0.00      0.00     99.80
05:30:01 AM     all      0.27      0.00      0.05      0.08      0.00     99.60

Read more

Postfix, Dovecot, Roundcube Setup

Some Links to setting up an Email Server on Ubuntu 14: http://wiki.vpsget.com/index.php/Dovecot_/postfix_with_Roundcube_WebUI http://www.krizna.com/ubuntu/setup-mail-server-ubuntu-14-04 How to Setup a Complete Mail Server (Postfix) using ‘Roundcube’ (Webmail) on Ubuntu/Debian https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-postfix-on-ubuntu-16-04 https://www.linode.com/docs/email/clients/install-roundcube-on-ubuntu-14-04 Unixmen – https://www.unixmen.com/install-configure-roundcube-webmail-ubuntu/ Useful command: sudo dpkg-reconfigure postfix Set up roundcube conf file: sudo wget https://linode.com/docs/assets/apache2-roundcube.sample.conf

How to Edit Your php.ini File on cPanel

On systems that run EasyApache 3, the /usr/local/lib/ directory contains your server’s php.ini file. On systems that run EasyApache 4, multiple php.ini and local.ini files manage your system’s PHP. Each version of PHP on your systems uses its own php.ini and local.ini file. You must make changes to each file separately. On systems that run … Read more

Plesk Trial

Plesk trial: http://page.plesk.com/typ-free-trial-for-web-professionals-thank-you-page?submissionGuid=f9242e8e-ac7a-4aa5-89bb-724d5b89dfc3

How do I disable MySQL strict mode on the server?

Please follow the under mentioned instructions to turn off the MySQL strict mode. Make the following changes in the “my.ini/my.cnf”: Look for the following line: sql-mode = "STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" Change it to: sql_mode="" Restart the MySQL service. or Look for the following line , this line will set MySQL strict mode sql-mode = "STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" To disable … Read more