How to enable Inline HTML display in Horde

cPanel’s Horde has “Inline HTML” is disabled by default

The error you probably got:

##
This message part contains HTML data, but inline HTML display is disabled.
View HTML data in new window.
Convert HTML data to plain text and view in new window.
Read the rest

How to update server’s time

I did it on OpenVZ server and it works like a charm

rm -fv /etc/localtime
ln -s /usr/share/zoneinfo/GMT /etc/localtime
or
ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime

Note the sym link may not work, so just copy file physically

Set date and sync it on hardware

date 081209312016
hwclock --systohc

The syntax is `date MMDDhhmmYYYY`.… Read the rest

How to get rid of “On behalf of” notices

If you want to get rid of "On behalf of" in your headers you need to set "Set SMTP Sender: headers" to off from the inside your Exim configuration

WHM –> Service Configuration –> Exim Configuration Manager –> Set SMTP Sender: headers

Should be OFF

grep local_from_check /etc/exim.conf.local
Read the rest

How to fix “none of the authentication methods supported”

If you are getting this on your email client as the one of way to fix this out you need to be sure the following settings of your EXIM server is switched to OFF

WHM –> Service Configuration –> Exim Configuration Manager –> Require clients to connect with SSL or issue the STARTTLS command before they are allowed to authenticate with the server.Read the rest

How to install Flask

How to install Flask

wget http://pypi.python.org/packages/source/F/Flask/Flask-0.10.tar.gz
tar -xzf Flask-*.tar.gz
cd Flask-*

Installing..

python2.6 setup.py install --user

Update your .htaccess with the following lines:

vi .htaccess

AddHandler fcgid-script .fcgi
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.fcgi/$1 [QSA,L]

Update your index.fcgi with the following lines:

vi index.fcgiRead the rest

How to configure firewall on CentOS cPanel server to use IPSET

This will improve your firewall's  performance

Install IPSET using:

yum install ipset ipset-devel -y

Update configuration file /etc/csf/csf.conf. Value for LF_IPSET needs to be set to 1 to get it enabled

Once its done go ahead and increase DENY_IP_LIMIT and DENY_TEMP_IP_LIMIT values for example up to 3000

You may use the following sed command for that

sed -i -e 's/LF_IPSET = "0"/LF_IPSET = "1"/g' /etc/csf/csf.conf
Read the rest

How to install CSF firewall on CentOS cPanel server

Download and install using:

wget https://download.configserver.com/csf.tgz
tar xfz csf.tgz
cd csf
sh install.sh

Update the following file with a trusted IP addresses

/etc/csf/csf.allow

Go ahead and disable testing mode

sed -i -e 's/TESTING = "1"/TESTING = "0"/g' /etc/csf/csf.conf

Once done, restart your firewall

csf -r

To add your IP address to a permanent allow list use:

csf -a 11.22.33.44

To block an IP address:

csf -d 11.22.33.44

Use following to see the lfd logs

tail -f /var/log/lfd.log
Read the rest