|
|
(167 intermediate revisions by 31 users not shown) |
Line 1: |
Line 1: |
| 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 including a Step-By-Step for installing the base OS of CentOS.
| | === Installation Instructions === |
| | To install ZoneMinder on RHEL, CentOS, and compatible clones, please refer to the instructions shown on our readthedocs site. |
| | [https://zoneminder.readthedocs.io/en/latest/installationguide/redhat.html Redhat - ZoneMinder Documentation] |
|
| |
|
| ----
| | ==== Archived Installation Instructions ==== |
| | | What follows is a link to old installation instructions which predate rpm installations from zmrepo or rpmfusion. They are kept solely for reference. |
| rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
| | [[CentOS/Archived]] |
| | |
| 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
| |