LogZilla on Redhat/CentOS/Fedora
From Network Management Wiki
Centos/Redhat installation
Starting with:
Centos 5.5 32 or 64 bit; Desktopinstallation/GNOME.(without mysql and PHP!) It is a *very* recommended to give the Server a static IP :-).
Dont forget to open syslogd/udp/514 and http/tcp/80 in the firewall settings. SELinux Permisive. Also a good idea to sync the time with a time-Server (if not done via a VM Module).
do a "yum update"
reboot the Server.
Download mysql 5.1 or 5.5 from the mysql HP (http://dev.mysql.com/downloads/mysql/#downloads)
Choose Redhat Enterprise Linux
Download and install the mysql 5.[15].xx Client/Server/Devel rpm package for your Archetecture.
Install syslog-ng (rpm form the balabit site; http://www.balabit.com/downloads/files/syslog-ng/sources/); same procedure as mysql
$ yum install perl-Date-Calc
$ yum install gcc
$ yum install gcc-c++
$ yum install perl-DBI
$ cpan File::Tail DBD::mysql Text::LevenshteinXS MIME::Lite
you need a password for the logzilla install.pl script:
$ mysql
mysql> use mysql
mysql> set password = PASSWORD ('secret');
mysql> flush privileges;
mysql> exit
$ mkdir /etc/syslog-ng
$ cd /etc/syslog-ng
$ ln -s /opt/syslog-ng/etc/syslog-ng.conf .
We need a php Version for mysql 5.1; Redhat/Centos dont provide so, so we use zend:
add /etc/yum.repos.d/zend.repo:
[Zend]
name=Zend Server
baseurl=http://repos.zend.com/zend-server/rpm/$basearch
enabled=1
gpgcheck=0
[Zend_noarch]
name=Zend Server - noarch
baseurl=http://repos.zend.com/zend-server/rpm/noarch
enabled=1
gpgcheck=0
$ yum install zend-server-ce-php-5.3.noarch
$ service zend-server restart
$ firefox http://127.0.0.1:10081 - agree licence - set up password
$ cd /usr/bin
$ ln -s /usr/local/zend/bin/php .
Do the logzilla install.
Install_Guide_for_LogZilla_v3.0#Installing_LogZilla Install_Guide_for_LogZilla_v3.0#Installing_Sphinx Install_Guide_for_LogZilla_v3.0#Configure_MySQL Install_Guide_for_LogZilla_v3.0#Configure_Syslog-ng
$ /etc/init.d/syslog-ng restart
$ cd /etc/httpd/conf.d
$ cp /home_of_the_logzilla_installation/scripts/contrib/system_configs/logzilla.apache logzilla.conf
Finish the installation, install Ioncube:
Install_Guide_for_LogZilla_v3.0#IONCube_Licensing
thats all.
Preparing Fedora 14 for Logzilla Installation
There was a bug in the Fedora Distro, mysql wasn't compiled with the partitioning option. Now it's fixed. Refer: https://bugzilla.redhat.com/show_bug.cgi?id=597390
Keep in mind, Fedora distributions are "bleeding edge" desktop versions. The lifecycle is only 1 year.
Most common is the installation direct from the Live-CD. So we start here.
After Installation on the hard-disk you have to change following parameters:
- set a static ip address
- permit tcp/80 and tcp/514 in the firewall settings
- disable selinux
To finish the preperation you need to add some more pakets.
yum install syslog-ng mysql mysql-devel mysql-server perl-Date-Calc gcc gcc-c++ perl-File-Tail perl-String-CRC32 yum install perl-Class-DBI-mysql perl-CPAN php php-mysql perl-MIME-Lite
Keep the distro up-to-date.
yum update
One paket isn´t in the distro. So we download it via CPAN.
cpan Text::LevenshteinXS
Enable the needed services at startup.
chkconfig rsyslog off chkconfig syslog-ng on chkconfig mysqld on chkconfig httpd on
Now it´s time for a
reboot
you need a password for the logzilla install.pl script:
$ mysql
mysql> use mysql
mysql> set password = PASSWORD ('secret');
mysql> flush privileges;
mysql> exit
Now you can start with the logzilla installation....
Install_Guide_for_LogZilla_v3.0#Installing_LogZilla
have fun.
--ThomasH 14:29, 25 January 2011 (UTC)

