Hotlink protection: How-To prevent people from stealing your files

Create an .htaccess file in your public_html directory with the following code: RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www.)?domain.com.*$ [NC] RewriteRule .(gif|jpg)$ – [F] Where domain.com is your domain.

WHM : Spamassassin / spamd not working

Spamassassin / spamd not working — solution 1. When restarting exim it will show [root@server ~]# /scripts/restartsrv_exim Starting exim: [ OK ] Starting exim-smtps: [ OK ] Starting antirelayd: [ OK ] Starting spamd: Can’t locate Cpanel/SpamAssassinSandBox.pm in @INC (@INC contains: /usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at /usr/bin/spamd […]

cPanel : sshd has failed, please contact the sysadmin

If you have changed the shell default Port 22 on a cPanel powered server , restarting sshd from the WHM will fail. You have to ssh to the server and issue the following command to restart sshd… /sbin/service sshd restart To, temporarily, reset your shell port back to 22, run the following command from the Address […]

WHM :: Access Denied

When you login to the WHM, you get the following error: Access Denied Functions in cPanel / WHM are available only directly through the cPanel and WHM interfaces or through our XML API. It appears that this request is coming from a referring site and might be malicious. When XSRF attacks is enabled in the […]

WHM / cPanel : Munin MySQL Graphs blank

Make sure that the password in /root/.my.cnf is valid, first. In /etc/munin/plugin-conf.d , you will see a file called cpanel.conf . Modify it completely to look like so: [mysql*] user root group wheel env.mysqladmin /usr/bin/mysqladmin env.mysqlopts -u [MySQL_usr] -p[MySQL_usrpassword] ### [MySQL_usr] is a valid MySQL user and [MySQL_usrpassword] is it’s password ### you can use […]

Plesk – Cannot FTP to a domain after its physical hosting has been recreated

1. Physical hosting on a domain had been removed. 2. Then it was recreated using the same FTP user name. 3. After that it’s impossible to login by ftp to the domain, the FTP server returns an error: 530 User fp1 cannot log in, home directory inaccessible. CAUSE IIS cache causes this problem. RESOLUTION Here […]