Pages

Wednesday, March 27, 2013

How To: Install CSF (Config Server Firewall)

In this guide we will walk you through installing and  configuring CSF – Config Server Firewall, a popular alternative to APF.  CSF comes with LFD and works with or without cPanel.

The wonderful part is that CSF will allow you to configure everything from within your WHM interface and also has a security analyzer that will evaluate the security of your server and suggest corrective measures to lock it down.  I personally use this on all of my servers.


CSF Install Guide and How To

Monday, March 25, 2013

How To Install Webmin on CentOS

This tutorial will guide you through 3 easy steps to installing Webmin on CentOS. This has worked on CentOS 6.

Step 1:

-- PASTE BELOW THIS LINE --
cat > /etc/yum.repos.d/webmin.repo << EOF
[Webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=1
EOF
-- END OF PASTE --

How to Clear cPanel/WHM Brute Force Log from SSH

If you find that you have accidentally been locked out of your WHM/cPanel server by Brute Force Detection, you can log in to your VPS via SSH and run the following command to clear the brute force log:

    # echo "delete from brutes; delete from logins;" | mysql cphulkd

cPremote version 6.6 is available now – Compatible with cPanel 11.36

An updated version of cpremote ,  6.6 is available now  for download. This  version is fully compatible with  cPanel version 11.36
Change Log:
  •     Removed the use of /var/cpanel/3rdparty/bin/php
  •     Added new  CPPHP support
Upgrade:
It will be automatically upgraded to the  new version. If you like to upgrade it manually, then simply run the cpremote installer in your server.

How to install/remove WHMXtra from cPanel server

The installation / removal of whmXtra is easy
To remove WHMXtra do the following.

wget http://whmxtra.com/pro/remitall.sh;sh remitall.sh
To install WHMXtra do the following.

wget http://whmxtra.com/pro/pro.sh;sh pro.sh

Now logins to WHM -> Plugins and continue with the installation procedure

htaccess and Useful Tips for Your Website

For some reason, the .htaccess file is often overlooked by web designers. If you have no idea what the .htaccess file is, I’ll just give you the Wikipedia definition: “A .htaccess (hypertext access) file is a directory-level configuration file supported by several web servers, that allows for decentralized management of web server configuration.”
But let’s get to it, here are some of the cool things you can do in your .htacces file.

Hotlinking protection with .htaccess

Websites that steal your written content can be quite annoying because they can hurt your Google rankings by creating duplicate content. However there is even worst: websites that steal your content AND don’t even make the effort of downloading images and reuploading it on their server. Loading images from your server is called hotlinking, and it’s a bad practice because it steals some of your precious bandwidth.
To preven people from hotlinking your images, just include the following lines in your htaccess file (obviously replace yoursite.com with your site’s URL.

RewriteBase /
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?yoursite.com/.*$ [NC]
RewriteRule .(gif|jpg|swf|flv|png)$ /feed/ [R=302,L