How to fix DBCACHE: exit 11 error with cPanel and MariaDB

Symptoms Updating MariaDB to v10.2.35 or v10.3.26 may hinder select sites to be inaccessible and the MySQL Database interface within cPanel may populate “The MySQL server is currently offline.”   Workaround As of 2020-11-06, cPanel development team has released an autofixer to address this issue. If you are experiencing this problem now, though, you may

How to fix DBCACHE: exit 11 error with cPanel and MariaDB Read More »

Make CSF work with OpenVPN

To make CSF work with OpenVPN, you’ll need to create extra iptable rules. We do that by adding them to csfpre.sh. nano /etc/csf/csfpre.sh If the file does not exist, you can create it. If it already exists, you should append to it. iptables -A FORWARD -m state –state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -s

Make CSF work with OpenVPN Read More »

find&replace text with bash on CENTOS/RHEL

You can find and replace text on one or multiple file at once using sed RHEL command   sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ filename.txt   Find and replace text on multiple files with .txt extention sed -i ‘s/TEXT-TO-FIND/REPLACE-WITH/g’ *.txt Replace TEXT-TO-FIND and REPLACE-WITH with the text you’re looking for and its replacment Example: sed -i ‘s/thursday/friday/g’ weekdays.txt The

find&replace text with bash on CENTOS/RHEL Read More »