Category Archives: Linux Tips & Tutorials

Enabling the Nginx Directory Index Listing

Directory listing is a feature that when enabled the web servers list the content of a directory when there is no index file (e.g. index.php or index.html) present.

How to enable browser caching in NGINX

Caching will improve speeds and browsing. Once the data is stored, visitors to your website will have a better experience as they will be able to move through your site faster. Also this is a great way to render CSS, JS, Image files from client browser without sending request to the web server.

Steps to enable leverage browser caching in NGINX.

How to resolve “Failed to set locale, defaulting to C when using yum ” error

locale is a set of environmental variables that defines the language, country, and character encoding settings for your applications and shell session on a Linux system.

Locale affects things such as the time/date format, the first day of the week, numbers, currency and many other values formatted in accordance with the language or region/country you set on a Linux system.

To solve this problem:

How to troubleshoot WP-CRON failure

WP Cron is WordPress internal mechanism for scheduling tasks.  It has nothing to do with Linux cron.  Linux cron is activated by an actual operating system scheduler.  WP cron is activated every time someone visits your site and then it checks a listing of jobs to see who should get executed.

How to fix the “SSH Remote Host Identification Has Changed” error

In this tutorial, I will try to explain how you can fix the SSH error to the remote machine which has a different digital fingerprint now as compared to the previous fingerprints.

WP-CLI common commands

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.

Redirect from non www to www URL on Nginx

At times we come across requests from customers when they would like to redirect their non www URLs to www URLs. For example if a customer asks to force redirect his site from https://mylinuxtips.info to https://mylinuxtips.info To perform this setup on Nginx webserver, follow below steps:

Enable SPDY with NGINX on Centos 6 Servers

The SPDY protocol has been created by Google to load HTTPS pages faster and improving web security.
It will work only when you have running site with SSL.

How to Block countries on Nginx with GeoIP module

GEOIP : The GeoIP technology allows the web masters to get valuable information about the location of their visitors. It can determine the country, city, area code and much more.The web site developers use it for delivering of customized content based on the geographical location, targeted advertisements, web logs and statistics, spam prevention, location restricted access and other useful solutions.

This tutorial will help you to know how we can use the GeoIP module with nginx to block all visitor from single and multipal countries.

Use Linux cron Instead of WP-CRON

WordPress has internal function called WP-CRON, By default every time a page is loaded in admin or on the front-end of your site, WordPress calls WP-CRON. To avoid this, best way optimize the efficiency of your WordPress cron jobs is to disable WP-CRON and set up a Linux cron job. 

PREREQUISITES

  • You need to have a working knowledge of Linux commands before you can use cron jobs effectively.