How to add NAT iptables rules with CSF
Posted by blackonsole on January 9th, 2016 04:33 AM | No Comment
What is CSF
Config Server Firewall (or CSF) is a free and advanced firewall for most Linux distributions.
How to add NAT iptables rules with CSF Firewall
We can add custom NAT iptables rules in /etc/csf/csfpre.sh OR/AND /etc/csf/csfpost.sh
0. Create csfpre.sh or csfpost.sh
touch ...
Fix AWStats on WHM/cPanel with NGINX
Posted by blackonsole on December 12th, 2015 12:06 AM | No Comment
What is AWStats
AWStats is short for Advanced Web Statistics. AWStats is powerful log analyzer which creates advanced web, ftp, mail and streaming server statistics reports based on the rich data contained in server logs. Data is graphically presented in easy to read web pages.
Fix AWStats issue ...
Can’t open freshclam.log in append mode
Posted by blackonsole on December 27th, 2014 12:05 PM | No Comment
:: Error in cronjob
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
:: How to fix clamav can't open /var/log/clamav/freshclam.log in append mode in cPanel server
+ Check permission in log files
ls -lh /var/log/clamav/
-rw-r--r-- ...
cPanel : Change Main Domain DocumentRoot
Posted by blackonsole on September 5th, 2013 02:57 AM | No Comment
:: What's is cPanel
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site.
:: How to Change Main Domain DocumentRoot in cPanel
+ Change documentroot
vi ...