Bash/Shell script to ping range of IPs

I mostly need to ping range of ips and some times more then 100 ips, and pinging them one by one is a time consuming task. Here is the script to do them quickly. [crayon-5a37bb12e23ef245689388/] You can replace 192.168.1 with your ip range, and 241 and 248 with start and end of ip range … [Read more...]

Installing mod_pagespeed on Cpanel Server

Download rpm from google developer website. [crayon-5a37bb12e2d64575525798/] Next command need to be with some care [crayon-5a37bb12e2d6c202263078/] First write [crayon-5a37bb12e2d70162177042/] Then press tab, it will automatically write your apache version installed, like [crayon-5a37bb12e2d73127467479/] Then write remaining to complete command [crayon-5a37bb12e2d76936010455/] Create a … [Read more...]

Speed test in VPS with out VNC using speedtest.net

Speedtest.net uses flash to do speed test that is why it required VNC, however it is not more required. If you have a vps with command line access, then all you need is to install python 2.x/3   If you have Python 2.x then run [crayon-5a37bb12e3595983485165/] If you have Python 3.x then run [crayon-5a37bb12e359c044713945/] Download [crayon-5a37bb12e359f624272301/] After that … [Read more...]

Installing Apache with Nginx autoinstaller to use Nginx as reverse proxy

Although Nginx is a light webserver as compare to Apache, however some time we need apache to use as webserver because Nginx lack some features them apache, a big example is Mod_rewrite. Therefore we use apache, however to speed using websites we use Nginx as Reverse proxy. Nginx Autoinstaller-LNMP provides this option as well, that we can install apache and use Nginx as reverse proxy. Must … [Read more...]

MD5 change detection script

Irongeek.com wrote a script to detect MD5 change in the files in your hosting account. Actually Irongeek.com was hacked few months before and therefore they wrote this script and I believe this script is very helpful for webadmins. You can download this script in text file by clicking here.   [crayon-5a37bb12e3fdd234113906/] … [Read more...]

Shell script to monitor current disk space and getting alert on thresh hold level

Yesterday I wrote a post when I found a script to monitor disk space in a server and getting alert on thresh hold level. However that script just send a notification when disk space is on thresh hold, but I wanted to get disk usage on daily basis therefore I made some modifications in script. [crayon-5a37bb12e4523178589329/] … [Read more...]

Monitoring your disk space with shell script

If you are running a busy server with several customers, uploading alot of file then there is a chance that you get out of space without knowing. I was about to write a script for my server but then found it on a famous website. [crayon-5a37bb12e4918632208367/] [crayon-5a37bb12e4920769550651/] Paste above script and save file. [crayon-5a37bb12e4923352698470/] Now script will run daily and … [Read more...]