Logo Background RSS
  • Install mod_security through WHM
    By on February 1st, 2009 | 4 Comments4 Comments Comments

    Background:
    Mod_Security is an open source intrusion detection and prevention engine for web applications. Operating as an Apache Web server module, the purpose of Mod_Security is to increase web application security, protecting web applications from known and unknown attacks.

    Official web site: http://www.modsecurity.org

    More information:
    1. Log to your Web Host Manager via your favorite web browser.

    2. On the left frame, scroll all the way down till you have reached the cPanel section, then click on Addon Modules.

    3. A new window will appear on the right frame. Scroll down until you see modsecurity, check the Install and Keep Updated field, and click on Save.

    cPanel will now begin to download Mod_Security and add a basic security scheme. Mod_Security will be added to Apache configuration file which is located at /usr/local/apache/conf/, and will include its main security configuration file which can be found at /usr/local/apache/conf/modsec.conf

    That’s it. mod_security is now installed on your server. Now, all that is left for you to do is to edit and add security filters.

    You can edit Mod_Security as configuration file either through Web Host Manager, or from shell (SSH).

    Web Host Manager
    Once the installation has been completed, a new section will be added to WHM by the name of Add-ons. Scroll down on the left frame until you see it, and click on the Mod Security link.

    Note: If you are still logged to your WHM and don’t see the Add-ons section, try refreshing your browser.

    Shell
    cPanel includes three configuration files: modsec.conf, modsec.user.conf, and modsec.user.conf.default.

    The ones that are in effect are modsec.conf, and modsec.user.conf. The file modsec.user.conf is blank by default, however, modsec.user.conf.default contains common security filters which can be applied to modsec.user.conf.

    I recommend viewing modsec.user.conf.default before copying, and applying any security filters. Misconfiguration can do more harm than good.

    Hope you all like this post :D

  • Restoring The Database via SSH
    By on February 1st, 2009 | 3 Comments3 Comments Comments

    Restoring The Database via SSH

    Login with ssh on your hosting server.

    then goto mysql

    mysql -u dbusername -p databasename < backupname.sql

    • dbusername => Your database user name
    • databasename => Your Database name
    • backupname.sql (with full path where your sql file present)
    • then hit enter
    • it will ask your password of database
    • then click enter

    If your hosting company has you on a remote MySQL server, such as mysql.yourhost.com, you will need to add the servername to the command line. The servername will be the same as in your config.php. The command line will be:

    mysql -h servername -u dbusername -p databasename < backupname.sql

    Or:

    mysql -h servername -u dbusername -p databasename < /path/to/backupname.sql

    Now you guys have any difficulty post your comments here :)

  • Zip file via ssh
    By on February 1st, 2009 | 2 Comments2 Comments Comments

    How many of you know how to zip a file by ssh

    # zip -r example.zip www
    
    This zips all files and directories
    • -r:Includes all files and directories -> Files
    • example.zip:The zip file you want to create
    • www : The folder you are targetting or use * if your currently in the folder.

    Comments are invited! :)

    
    
  • SSH slow login Problem
    By on January 31st, 2009 | 1 Comment1 Comment Comments

    SSH slow  login? Disable reverse DNS lookup

    when you log into the SSH server, it will do a reverse DNS lookup of the client for security reasons. Thats why it takes a time to login.

    vi /etc/ssh/sshd_config (and add the below line:)

    UseDNS no

    
    

    So enjoy SSH :D

  • Laloo prasad yadav in a comedy mood
    By on January 29th, 2009 | No Comments Comments

    Laloo Prasad

  • 1100+ Dofollow blog list
    By on January 28th, 2009 | 4 Comments4 Comments Comments

    You may see few URLS are not working fine! But till i found all were working.

    Till then you Keep Commenting!

    Note: If you want to me to add your URL in that list, Throw me an email and I will do it ASAP! :D (admin [at] gossiplime.com

    Here is the list : 1100+ Do-Follow Blog List (TEXT FORMAT)