Showing posts with label Module. Show all posts
Showing posts with label Module. Show all posts

Wednesday, January 03, 2007

apxs - APache eXtenSion tool

apxs is a apache tool which lets you build and install apache extensions. All the modules built using apxs are loaded dynamically at runtime using the LoadModule directive

To know more about apxs - head to the Apache site

Mask your Site

We present to you a few feature as well as security enhancements to mask your webserver and site from web attacks!

  • Do not use a default extension even though you use a language like php or aspx. If you can make it go away in entirety - the better! And do use Clean URLs Search engines love Clean URLs
  • Modify your header information so that it returns something not so obvious. Take a look at mod_headers module
  • Do not use CGI or SSI (Server Side Includes) - both of them are heavy on the server and vulnerable to attacks
  • If you have a popular site, you might want to consider using something like Modsecurity which is a web application firewall which allows real time monitoring and analysis
  • Get a book - Apache Security is a good start

Tuesday, December 26, 2006

Compiling & Installing a perl module

This is a basic but essential tip on how to install a perl module

First of all, get the perl module via http://search.cpan.org

For example - XML::Twig

wget http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/XML-Twig-3.26.tar.gz

Extract it

tar zxvf XML-Twig-3.26.tar.gz

Now execute the following steps

perl Makefile.PL (Create the makefile)
make (compile the module)
make test (test the module)
sudo make install (install the module)

You can also use perl Makefile.PL PREFIX=/opt/perl/modules

to install your module at a different location - /opt/perl/modules