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

The remote session was disconnected because there are no Remote Desktop License Servers available to provide a license

It could be that a session was left connected. If thats the case I’ll try using the admin console command and see if I can get connected with it. On you local computer, go to Start -> Run then paste this and hit enter mstsc.exe /admin It’ll prompt for IP and then user/pass. It looks … Read more

Find all files modified within 30 days and then parsed that for base64 decodes (used to encrypt/hide coding)

If your site is hacked, the check for edited files. Find all files modified within 30 days and then parsed that for base64 decodes (used to encrypt/hide coding) Find the coding itself # cd /home/domain/public_html # find . -type f -ctime -30 -iname "*.php" -exec grep "base64_decode" {} \; Results # find . -type f … Read more

Install xcache

CentOS 6 # yum install php-xcache xcache-admin Debian/Ubuntu/Linux Mint # apt-get install php5-xcache Configure RHEL/CentOS/Fedora # nano /etc/php.d/xcache.ini Debian/Ubuntu/Linux Mint # nano /etc/php5/conf.d/xcache.ini OR # nano /etc/php5/mods-available/xcache.ini once you’re done with configuration settings, restart your Apache web server. # /etc/init.d/httpd restart # /etc/init.d/apache2 restart Verify # php -v Enabling XCache Admin Panel for PHP By … Read more