Making CSF work with OpenVPN 4

This guide will assume you have both Config Server Firewall (CSF) and OpenVPN already installed and working individually. To make CSF work with OpenVPN, you’ll need to create extra iptable rules. We do that by adding them to csfpre.sh. 1 nano /etc/csf/csfpre.shnano /etc/csf/csfpre.sh If the file does not exist, you can create it. If it ...

Changing Limits for Services with CentOS 7 / RHEL 7 / Systemd 7

Hitting too many open file limit for apache? In the previous OS versions, changing limits like open file number would be set in /etc/security/limits.conf or directly inside the start up script. In some ways the new method brings better organization to the limits, but its change is very confusing to people who were expecting the ...

Allowing stuff on SELinux (NewRelic example | For CentOS/RHEL 5/6/7)

Ah… selinux, always getting in the way of things… SELinux doesn’t necessarily have all the proper rules, so often you’d need to adjust it yourself. This is a tutorial of how to do that with NewRelic as an example (which I just had problem with after updating…). You can replace “newrelic” and “newrelic-daemon” to your ...

Installing Software RAID on Centos 5/6/7 via SSH 11

Considering number of dedicated server rentals that just gives JBOD, setting up your own software raid is quite handy. This tutorial goes over the very basic of how it’s done. All of this should be done under root. Let’s say you have 3 disks: sda, sdb & sdc. The OS is mounted on the sda, so ...

Sphinx Search & Invision Power Board

I just finished tweaking Sphinx (and bunch of other stuff) for a client and sphinx was being terrible with full indexing! So bad on the first time that it brought the site down for a good 15 minutes and maybe another half hour of crawling speeds on the first run. This client’s db is bigger than ...