Difference between revisions of "CentOS"
From ZoneMinder Wiki
Jump to navigationJump to search
Line 3: | Line 3: | ||
---- | ---- | ||
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | ||
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz | wget http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz | ||
wget http://www.zoneminder.com/fileadmin/downloads/cambozola.jar | wget http://www.zoneminder.com/fileadmin/downloads/cambozola.jar | ||
yum install screen | yum install screen | ||
screen | |||
yum install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools perl-Date-Manip perl-Time-HiRes perl-LWP-UserAgent-Determined perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Module-Load | |||
yum | yum -y update | ||
svn checkout -r 11879 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg | |||
cd ffmpeg/ | |||
./configure | |||
make | |||
make install | |||
make install-libs | |||
chkconfig httpd on | |||
chkconfig mysqld on | |||
chkconfig ntpd on | |||
service httpd start | |||
service mysqld start | |||
service ntpd start | |||
cd /root/ | |||
tar -zxvf ZoneMinder-1.23.3.tar.gz | |||
cd ZoneMinder-1.23.3 | |||
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass | |||
make | |||
make install | |||
mysql | |||
mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_root_password'); | |||
mysql | |||
mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_root_password'); | |||
>Query OK, 0 rows affected (0.00 sec) | >Query OK, 0 rows affected (0.00 sec) | ||
mysql> create database zm; | |||
mysql> create database zm; | |||
>Query OK, 1 row affected (0.01 sec) | >Query OK, 1 row affected (0.01 sec) | ||
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost; | |||
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost; | |||
>Query OK, 0 rows affected (0.02 sec) | >Query OK, 0 rows affected (0.02 sec) | ||
mysql> SET PASSWORD FOR your_zm_user@localhost=PASSWORD('your_zm_password_from_above'); | |||
mysql> SET PASSWORD FOR your_zm_user@localhost=PASSWORD('your_zm_password_from_above'); | |||
>Query OK, 0 rows affected (0.25 sec) | >Query OK, 0 rows affected (0.25 sec) | ||
mysql> exit | |||
mysql> exit | |||
>Bye | >Bye | ||
mysql -u root -p < db/zm_create.sql zm | mysql -u root -p < db/zm_create.sql zm | ||
cp scripts/zm /etc/init.d/ | cp scripts/zm /etc/init.d/ | ||
chmod +x /etc/init.d/zm | chmod +x /etc/init.d/zm | ||
chkconfig zm on | chkconfig zm on | ||
cp cambozola.jar /var/www/html/zm/ [tick the support for it on http://local-ip/zm] | cp cambozola.jar /var/www/html/zm/ [tick the support for it on http://local-ip/zm] | ||
service zm start | service zm start |
Revision as of 09:58, 27 May 2008
The following is a Step-By-Step of how to install ZoneMinder 1.23.3 With CentOS 5.1. It is a current work in progress so first will be listed the steps, and then the explanations will be added.
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
wget http://www2.zoneminder.com/downloads/ZoneMinder-1.23.3.tar.gz wget http://www.zoneminder.com/fileadmin/downloads/cambozola.jar
yum install screen screen
yum install mysql mysql-server mysql-devel php php-gd php-mysql httpd gcc pcre-devel gd mod_ssl glib2-devel gcc-c++ ntp gnutls-devel libjpeg-devel perl-Archive-Tar perl-MIME-Lite perl-MIME-tools perl-Date-Manip perl-Time-HiRes perl-LWP-UserAgent-Determined perl-PHP-Serialization perl-Device-SerialPort perl-Archive-Zip perl-Module-Load
yum -y update
svn checkout -r 11879 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg cd ffmpeg/ ./configure make make install make install-libs
chkconfig httpd on chkconfig mysqld on chkconfig ntpd on service httpd start service mysqld start service ntpd start
cd /root/ tar -zxvf ZoneMinder-1.23.3.tar.gz cd ZoneMinder-1.23.3
./configure --with-webdir=/var/www/html/zm --with-cgidir=/var/www/cgi-bin --with-webuser=apache --with-webgroup=apache ZM_DB_HOST=localhost ZM_DB_NAME=zm ZM_DB_USER=zmuser ZM_DB_PASS=zmpass make make install
mysql mysql> SET PASSWORD FOR root@localhost=PASSWORD('new_root_password');
>Query OK, 0 rows affected (0.00 sec)
mysql> create database zm;
>Query OK, 1 row affected (0.01 sec)
mysql> grant CREATE, INSERT, SELECT, DELETE, UPDATE on zm.* to your_zm_user@localhost;
>Query OK, 0 rows affected (0.02 sec)
mysql> SET PASSWORD FOR your_zm_user@localhost=PASSWORD('your_zm_password_from_above');
>Query OK, 0 rows affected (0.25 sec)
mysql> exit
>Bye
mysql -u root -p < db/zm_create.sql zm
cp scripts/zm /etc/init.d/ chmod +x /etc/init.d/zm chkconfig zm on
cp cambozola.jar /var/www/html/zm/ [tick the support for it on http://local-ip/zm]
service zm start