Categories
Firewall

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.

Categories
Webservers

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:

Categories
Firewall

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.

Categories
Webservers

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.

Categories
Webservers

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.

Categories
Linux Tips & Tutorials

How to read a file line by line in bash script using while loop

This tutorial introduces the concept of playing a file line by line in bash script using while loop.

PREREQUISITES

This tutorial assumes that the reader has basic knowledge of bash scripting & programming skills.

Categories
Caching

How to disable logging in Squid Proxy

Some times we come across strange requirements and disabling logs of squid proxy service is one of them. Below are the simple steps to disable all kind of logging by squid service.

Categories
Linux Tips & Tutorials Monitoring

How to generate and send Nagios hosts and services reports through command line

OBJECTIVE

The objective of this how to is to setup nagios reporting through command line & enabling the cron jobs to send the reports in HTML format to email accounts specified.

PREREQUISITES

Categories
Linux Tips & Tutorials Webservers

How to install Nodejs on CentOS

OBJECTIVE

The objective of this small HowTo is to help the system administrators setup NodeJS on their CentOS Server.

NOTE: The mentioned steps are successfully ran on CentOS 6 version

Categories
Linux Tips & Tutorials Logging

Setup Remote Logging Server with Rsyslog

Objective

The objective of this tutorial is to configure a remote centralized log server using rsyslog. RsysLog server runs on both TCP as well as UDP port 514. But this tutorial is using UDP port. This setup is tested on CentOS 6 server & client machines.