buy tb500

Archive for November, 2011

Delete spammer email Exim

Monday, November 28th, 2011

exim -bpr | grep | awk {‘print $3’} | xargs exim -Mrm

Thank you.

How to enable Fancy Directory Indexing in Apache 2.2

Friday, November 25th, 2011
  1. cd /usr/local/apache/conf/extra and verify that httpd-autoindex.conf exists. Don’t do anything with it, just make sure it is there.
  2. open /usr/local/apache/conf/httpd.conf and do a find and look for the section of the config where some “IfModule” entries exist. Then enter this module somewhere in that section:

    <IfModule mod_autoindex.c>
    IndexOptions FancyIndexing IconHeight=16 IconWidth=16

    (EDIT: HelloAdam suggested that we should use IconHeight=22 IconWidth=20 instead, as these are the values that Apache 1.3 used)

  3. Exit the edit session and save your work.
  4. Now you must “distill” the changes (assuming you are using Easy Apache). Enter this command:

    /usr/local/cpanel/bin/apache_conf_distiller –update

    You should get back “Distilled successfully”.

  5. Now you will rebuild your httpd.conf, and see if the changes you made stuck. Enter this command:


    You should get back “Built /usr/local/apache/conf/httpd.conf OK”

  6. Open /usr/local/apache/conf/httpd.conf again, and make sure that your IfModule addition is still there. If so, success !!
  7. Restart Apache. I prefer to do it via WHM’s Restart Apache link. YMMV.

I have attached screen shots of a directory listing, BEFORE and AFTER.

I hope this is useful to someone.