How to Install Nginx on CentOS / RHEL

Normally I install Nginx on CentOS / RHEL via the EPEL repo, however I have recently discovered the Nginx project has it’s own repo available. Note this will install a much newer Nginx version than the one available in the EPEL repo, follow the steps below to install Nginx on CentOS / RHEL. Create the file /etc/yum.repo.d/nginx.repo and populate it … Read more

CentOS / RHEL: List All Configured Repositories

How can display a list of configured repositories under CentOS / Fedora / Red Hat Enterprise / Scientific Linux server operating systems? You need to pass the repolist option to the yum command. This option will show you a list of configured repositories under RHEL / Fedora / SL / CentOS Linux. The default is to list … Read more

Recover the MySQL Root Password Easily

To recover your MySQL database server password follow these five easy steps.. Step 1: Stop the MySQL service.. service mysql stop or service mysqld stop Step 2: Start the MySQL server without any passwords.. mysqld_safe –skip-grant-tables & Step 3: Connect to mysql server using mysql client.. mysql -u root Step 4: Setup new MySQL root … Read more

Simple Guide to a FreeRADIUS VPN Failover Setup

In this tutorial i will show you how to setup a simple FreeRADIUS failover setup for OpenVPN, PPTP, L2TP and Dante, you can’t get any easier ! First lets start with OpenVPN, this is assuming you already have OpenVPN installed and configured to auth from FreeRADIUS.. OpenVPN Under /etc/openvpn/ you will find the file radiusplugin.cnf, open it and … Read more

Install and Setup FreeRADIUS on CentOS 5/6 and Ubuntu 11.10

A simple tutorial to setup and configure FreeRADIUS on CentOS 5/6 and Ubuntu 11.10. Just follow the instructions below to have your FreeRADIUS setup ready to go when used along with our WHMCS module, we have distinguished the difference between CentOS commands and Ubuntu commands: CentOS 5: yum install freeradius2 freeradius2-mysql freeradius2-utils mysql-server -y CentOS … Read more

YUM Autocomplete on Fedora, CentOS, Red Hat (RHEL)

Autocomplete feature is familiar to many who have used the Debian based Linux, like Debian and Ubuntu. For some reason, this feature is not automatically activated/installed on Red Hat -based Linux distros, like Fedora, CentOS and Red Hat (RHEL). Actually auto completion works with any Bash programs, but I think it’s very useful example with … Read more

Protect PHP Installation with Suhosin Security Patch in CentOS

Suhosin is an advanced protection system for PHP installations. It was designed to protect servers and users from known and unknown flaws in PHP applications and the PHP core. Suhosin comes in two independent parts, that can be used separately or in combination. The first part is a small patch against the PHP core, that implements a few low-level protections against bufferoverflows or format … Read more

Tcpdump Commands – A Network Sniffer Tool

tcpdump is a common packet analyzer that runs under the command line. It allows the user to intercept and display TCP/IP and other packets being transmitted or received over a network to which the computer is attached. Distributed under the BSD license,[3] tcpdump is free software. Tcpdump works on most Unix-like operating systems: Linux, Solaris, BSD, Mac OS X, HP-UX and AIX among others. In those systems, tcpdump uses the libpcap library to capture packets. The port of tcpdump for Windows is … Read more

Install iotop on linux

iotop is a very essential tool for system administrator if you are interested to track down an IO bottleneck of your server. Vmstat also provides an optimal report although it is hard to pinpoint the error using vmstat. Vmstat can help you to understand there is an IO bottleneck. Install iotop on Debian/Ubuntu and Mint … Read more