Wednesday, November 5, 2008

Install Base and Apache2 Ubuntu 8.10 interpid

sudo apt-get install apache2 php5-mysql libphp-adodb

If you get a message about the path to adodb changing, take note on what the new path is.


cd /var/www
sudo wget http://downloads.sourceforge.net/secureideas/base-1.4.1.tar.gz?modtime=1217804205&big_mirror=0

You might not want to copy and paste the above code as it could be outdated. Just download the newest version and drop it in /var/www and unpack.

sudo tar -xvzf base-1.4.1.tar.gz

sudo rm base-1.4.1.tar.gz
sudo mv base-php4 base

Change "base" to whatever you want your path to base to be: IE http://mywebserver/base

sudo apt-get install php-pear php5-gd
sudo pear install Mail Mail_Mime Image_Color Image_Canvas-alpha Image_Graph-alpha

Open a web browser and navigate to you website, http://localhost/base/ which should take you to, http://localhost/base/setup/setup1.php

Make sure it says that your config file is writable. If not, you could try something like:

sudo chmod -R 777 base


The next screen will ask you for the path to adodb. If you are not sure what that is, you could try something like:

sudo find / -name adodb


The next screen will ask for your DB connection information. Since this guide does not cover getting snort set up I will assume you already have snort set up and know you database information. Add information as necessary.

The final screen will ask if you want would like to require authentication to access the BASE website. I highly recommend setting up a user.


Should be all set up after that. Depending on how many snort alerts are in your DB and various other hardware related factors, it could take some time for BASE to query the data in the database, so be patient if it doesn't come up right away!

No comments: