Install Nginx ModSecurity on CentOS 7

ModSecurity is a Web Application Firewall that protects your website from hacking attacks. It is Open Source and free to use. It can be used with webservers like Apache, Nginx, and IIS. To install ModSecurity with Nginx, we need to compile the ModSecurity Nginx module and activate it in the Nginx configuration file. Install the […]

Read More…

bash: mysql_safe: command not found

MySQL

On CentOS 7 server running MySQL 5.7, when trying to reset MySQL root password, I get an error

This is because MySQL 5.7 installation using yum removed the mysqld_safe binary file. To reset, you need to start MySQL using systemctl with skip-grant-tables options. So you don’t need mysqld_safe. To see how to reset MySQL […]

Read More…

yum fix duplicate package error

When installing a package, i get following error

To fix, remove the conflicting package with

See yum, Fix yum duplicate packages […]

Read More…

Red Hat Killing CentOS Linux, Fight for CentOS clone

RedHat, parent company of CentOS Linux announce it will stop supporting CentOS 8, the latest version of CentOS. CentOS is build from the source code RHEL, making a free version of stable and well-tested enterprise ready RHEL Linux. CentOS 7 will keep getting security updates until it reaches End Of Life June 30th, 2024. For […]

Read More…

Install Monit on CentOS

Monit allow you to monitor process. It can restart failed process or alert when server is overloaded. On CentOS server, you need to enable EPEL repo to install monit.

Install monit with

Enable monit to auto start on boot

Start monit service

On CentOS, monit configuration file located at

See […]

Read More…

Prometheus init script for CentOS 6

Create init file.

Add following

Create User For Prometheus

Run prometheus on Boot

Verify it is enabled

“3:on” will start prometheus on run level 3, that is normal boot. Start Prometheus

See Monitor Server with Prometheus and Grafana […]

Read More…

rpmquery

rpmquery command allow you to check if a specific rpm package installed on your computer.

Example

See rpm […]

Read More…

Update Cpanel License Key

To update cpanel server license, run

Example

Back to Cpanel Server […]

Read More…

Install PHP 5.6 on CentOS 7

To install PHP 5.6 on CentOS 7, enable EPEL repo and remi repo

Install yum-utils and enable remi-php56 repo

Install PHP 5.6 with

[…]

Read More…