Installing ZoneMinder with Fedora2

Add any particular hints or tricks you have found to help with your ZoneMinder experience.
Post Reply
cantisan
Posts: 2
Joined: Wed Jul 14, 2004 1:28 pm

Installing ZoneMinder with Fedora2

Post by cantisan »

I just installed ZoneMinder on Fedora2 and I will put the all installation process here from Apache until ZoneMinder.

Default directories, if you don´t have, create it (mkdir /etc/apache and /etc/mysql)
/etc/apache
/etc/mysql

#Mysql installation:
Download mysqlsource mysql-4.0.20.tar.gz (nowdays) from http://www.mysql.org
well, let´s install mysql
tar -zxvf mysql-4.0.20.tar.gz
useradd mysql
./configure --prefix=/etc/mysql
make
make install
cp support-files/my-medium.cnf /etc/my.cnf
cd /etc/mysql
bin/mysql_install_db --user=mysql
chown -R root .
chown -R mysql var
chgrp -R mysql .
#Now we will install PERL modules, but before that we need fix some problems:
1- looking for ld.so.conf (usually on /etc/) and insert the following line: /etc/mysql/lib/mysql, save it and run ldconfig
2- vi /root/.bash_profile in line "PATH" add ":/etc/mysql/bin"
# Mysql on startup
vi /etc/rc.local and insert the line: "/etc/mysql/bin/mysqld_safe -u root &"
now, boot your machine to check if it´s ok and mysql is staring on boot without any problem.
# Back to perl modules (HUG)
Perl –MCPAN –e Shell (you will be ask to fill some information, say "no")

CPAN> install DBI

CPAN> install DBD::mysql

CPAN> install Data::ShowTable

CPAN> install Term::

#Now installing Apache with PHP support
ln -s /usr/bin/perl /usr/local/bin/perl
tar -zxvf source_code_of_apache
./configure --prefix=/etc/apache
(...continue after php)
# Now installing PHP with Mysql Suport
tar -zxvf source_code_of_php
1- ./configure –with-apache=/dir_source_of_apache --enable-track-vars
--with-config-file-path=/etc/apache –with-mysql=/etc/mysql
2- make
3- make install
# Back to apache again ! :-)
1- ./configure --prefix=/etc/apache --activate-module=src/modules/php4/libphp4.a
2- make
3- make install
# last changes...
copy the php.ini-distrib to /etc/apache/php.ini, edit this file and looking for register_global=on
vi /etc/apache/conf/httpd.conf looking for nobody and change for apache
also, add this line: AddType application/x-httpd-php .php
useradd apache
chown apache.apache /etc/apache/ -R
/etc/apache/bin/apachectl restart
#installing zoneminder
tar -zxvf sourcecode_of_zoneminder
#enter in subdir db of zoneminder source
#set mysql password
mysqladmin -u root password 'novopassword'
mysql -u root mysql < zmschema.sql.z
mysql -u -p
grant select on ZM_DB_NAME.* to 'zm'@localhost identified by '<password>'
quit
mysqldadmin reload -u root -p
# in zoneminder source code root
# libjpeg-devel-6b-31.1.i386.rpm is required to install it, put disk2 of #fedora2 and run rpm -hiv #/mnt/cdrom/Fedora/RPMS/libjpeg-devel-6b-31.1.i386.rpm
./configure --with-mysql=/etc/mysql --with-webdir=/etc/apache/htdocs --with-cgidir=/etc/apache/cgi-bin/
perl ./zmconfig.pl
# you will be to enter two users with privileg (root) and without (zm) I left the rest of options default...
perl ./zmconfig.pl -noi
make
make install

# well the next steps is related to my webcam
modprobe bttv
edit modules.conf and insert alias char-major-81 videodev
zmpkg.pl Start
open your browser on http://IP_SERVER/zm.php and setup the camera... :-)
Ben
Posts: 35
Joined: Sat Jul 10, 2004 10:09 am
Location: The Netherlands

Thanks

Post by Ben »

Thanks, That's wthat I need
I have Fedora2 installed And a couple of days I try to install Zoneminder.

Ok, I'm a newby, but I see the line "mysqladmin - root password 'novopassword'
What is 'novopassword'??? Do I use this exactly.. ???..

Thx
cantisan
Posts: 2
Joined: Wed Jul 14, 2004 1:28 pm

hehehe

Post by cantisan »

Sorry... "novopassowrd" = "newpassowrd", not you just need to choose any password, but you can't forget ! :-)

in any translator problem.. try www.altavista.com - translate !
Post Reply