Tuesday, December 22, 2009

Debian apache2 php5 mysql with nagios and open-audit

ok I threw this box together this morning and to get everything working all together I had to add a few packages. Here is the break down on what got installed.

apt-get install apache2 - if you don't already have it

apt-get install openssh-server
apt-get install build-essential mc vim ntpdate smbfs
apt-get install nagios3
apt-get install libsnmp-perl libsnmp-session-perl


a quick fix after that was

chmod -R g+s /etc/nagios3
dpkg-statoverride --update --add nagios www-data 2710 /var/lib/nagios3/rw
dpkg-statoverride --update --add nagios nagios 751 /var/lib/nagios3


that was enough to get nagios up.. Next php and mysql

apt-get install php5 mysql-server-5.0 mysql-client-5.0 libapache2-mod-php5 php5-mysql php5-curl php5-cli php5-dev make gcc libc6-dev automake

apt-get install libapache2-mod-perl2 php5-common php5-dev php5-gd php5-imap php5-ldap php5-mhash php5-odbc

from there I copied over openaudit to my /var/www directory

/etc/init.d/apache2 restart

pointed browser to http://serveraddress/openaudit/setup.php

I think that is it. hope I didnt miss anything. Of course you have to do some configuration now

No comments:

Post a Comment