Database Connection Problems – User modsec /etc/cron.hourly/modsecparse.pl on cPanel

Database connection problems with modsecparse.pl are usually caused by an issue with mod_security. You will receive an email an hour such as the below, informing you that there is a problem with the service. /etc/cron.hourly/modsecparse.pl:…

[emerg]: bind() to 0.0.0.0:80 failed (98: Address already in use)

nginxCP can fail to start because another service is using Port 80, thus preventing nginxCP from starting. Often an error similar to the below will be thrown out – [emerg]: bind() to 0.0.0.0:80 failed (98: Address…

Safely empty MySQL .log & .err files on cPanel Servers

Over time the .log & .err files on cPanel servers can become huge, more often that not you should always investigate what is causing these files to generate to huge capacity in case there are…

CentOS 6 Install and Configure NTP to Synchronise The System Clock

One problem often encountered with a new install of some operating systems is that the time settings are incorrect. You can easily update these manually, or much more easily you can use the NTP service…

How to Setup and Configure an OpenVPN Server on CentOS 5/6/7

This will guide you how to setup and config an OpenVPN server on your CentOS server. Prepartion Before setup of the OpenVPN server, you’ll need to have the Extra Packages for Enterprise Linux (EPEL) Repository…

HTTPS redirect Apache – Direct your website users with your htaccess

If you have an SSL Certificate on your website, you can automatically HTTPS Redirect Apache for your visitors to ensure their connection communication is encrypted. HTTPS Redirect with Apache You will need to create or…

How to install or upgrade PHP from 5.4 to 5.5 on CentOS/RHEL 6/7

CentOS 7 by default installs PHP 5.4. At the end of September PHP 5.4 came to the end of it’s life, no longer receiving security updates. A number of systems still run PHP 5.4. This…

Tuning MySQL for Performance with MySQLTuner

MySQLTuner is a Perl script that analyses your MySQL performance and, then generates recommendations based upon the statistics that it has gathered. You should adjust the variables to increase performance. The way, you can tune…

Automatically update your website footer year

To start the New Year off, we’re answering the question that often comes up in the first week of January – “How do I automatically update my the year in my website footer so I don’t…

How to find large files on RedHat, CentOS or Fedora Linux?

Unfortunately in Linux there is no single command that lets you find large files, however with the help of the Find command we can create a list of large files. In this example, we are looking…