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 […]
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 […]
If you want to upgrade your PHP 5.3 to PHP 5.6 running on Ubuntu 12.04 with nginx, you need to follow these steps : Step 1: Add the PPA repository for PHP 5.6 sudo add-apt-repository ppa:ondrej/php If you are logged in as the root user, you can leave out ‘sudo’ from the above command If […]
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 […]
If you have a custom WordPress login form or you do not want anyone to access the default login form, due to security reasons or any other reason, you can set a redirect for the wp-login.php page. You could set a redirect simply in the .htaccess or the site’s Nginx config file, but this will […]
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 […]
Often while updating pages or posts in WordPress, it automatically adds p and br tags automatically at the end of paragraphs. This behavior specially happens when copying text from HTML file to the WordPress editor. This can be really frustrating and keeps on messing with the page structure. There are 2 ways of fixing this […]
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 […]
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 […]
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 = […]