How to purge / clear Varnish cache for a single URL

Varnish is a reverse web proxy accelerator that caches the HTTP contents. It can speed up requests by a factor of 500-1000 times. By caching and saving CPU time and database requests for content, varnish is able to server hundreds of consecutive requests per second. What is the need for a Varnish cache? The need […]

How to create a swap on Ubuntu 14.04

What is a Swap Partition ? A linux swap partition becomes useful when your server’s RAM gets full. When your RAM gets full, then your swap partition will act as a RAM for your other applications. But does not this mean this is a great alternative to having a large RAM, because a swap partition […]

How to setup GeoIP to track location of IP addresses

GeoIP is a PHP extension, which is used to get all the information like, city, state, country, longitude / latitude etc for any IP address. You can use this extension to track the visitors to your site. It can help you prepare better analytic for your user-base with the information collected. To install GeoIP, we […]

How to create a cron job on a linux server

Cron is a command to the Server, for a job that is to be executed at a specified time. Cron is one of the most useful tool in a server. It can be run for jobs like creating backups, cleaning files, monitoring tasks etc. The ‘crontab’ command is used to edit/create cron jobs for the […]

How to update to Ubuntu 14.04 LTS on Linux Server

Before upgrading it is always recommended that you create a backup first. Step 1 : Check the current version of Ubuntu uname -mrs lsb_release -a This should return an output in the following format : Linux 3.2.0-51-generic x86_64 No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 12.04.4 LTS Release: 12.04 Codename: precise Step […]

How to install WP-Cli on your Linux server

WP-CLI is a command line tool to manage your WordPress installation. To install it on your Linux server you require SSH access for the server. Note: To install WP-CLI you require PHP version 5.3.2 and later and WordPress version 3.5.2 and above Step 1 : Download the ‘wp-phar.phar’ File in your ‘opt’ folder. cd /opt […]

How to increase PHP file upload limit with PHP FPM and Nginx

If while uploading a file you get an error with the following text in it : “client intended to send too large body:” You can fix this error by increasing the PHP File-Upload Limit as following : Step 1: Open php.ini file nano /etc/php5/fpm/php.ini And update ‘upload_max_filesize’ and ‘post_max_size’ values upload_max_filesize = 150M post_max_size = […]