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.
Month: May 2008
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… Continue reading WHM : Spamassassin / spamd not working
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… Continue reading cPanel : sshd has failed, please contact the sysadmin
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… Continue reading WHM :: Access Denied
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… Continue reading WHM / cPanel : Munin MySQL Graphs blank
WHM / cPanel : Munin graphs are Blank
WHM / cPanel Provides Munin for the Server Monitoring. It shows graphs for Disk, Exim, Mysql, Network, and Other Processes. I faced a issue on clients server where installation goes fine and Munin graphs are blank. I have made a short guide to trace the issue. Restart Munin node and Watch for the logs for… Continue reading WHM / cPanel : Munin graphs are Blank
Invalid command ‘SSLEngine’
CentOS release 4.5 (Final) Server version: Apache/1.3.37 (Unix) You can get this error for lots of reasons (including the mod_ssl.c module not being loaded) but my problem to day was the above error spat out by: apachectl configtest The reason is that apachectl DOES NOT define SSL (i.e. when it’s checking the config file). Therefore… Continue reading Invalid command ‘SSLEngine’
Formatting and Mounting a new drive in Linux
I have installed a new slave hard drive. How do I format it and mount it? Solution: 1. Login as root: and type the following command: [root@34 root]# fdisk /dev/hdc 2. This screen will appear: The number of cylinders for this disk is set to 10011. There is nothing wrong with that, but this is… Continue reading Formatting and Mounting a new drive in Linux
What is Virtuozzo / Parallels Power Panel?
Virtuozzo / Parallels Power Panel also known as VZPP / PPP is used to manage a VPS / Container efficiently. A user can Restart, Stop, Start, and Fast Stop his/her VPS when an emergency occurs. Using Virtuozzo also helps a user to get better information of his/her VPS such as Change password, File Manager, Resources,… Continue reading What is Virtuozzo / Parallels Power Panel?
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… Continue reading Plesk – Cannot FTP to a domain after its physical hosting has been recreated