There are currently no official ebuils for the ZoneMinder package. One is available in the X overlay, but that is not covered here.
We fetch ZM from source, and configure, make, make install.
~ # wget zonminder ~ # tar -zxf ZoneMinder-1.25.0.tgz -C /usr/src ~ # cd /usr/src/ZoneMinder-1.25.0 ~ # CPPFLAGS="-D__STDC_CONSTANT_MACROS" ./configure \ --prefix=/opt/zoneminder \ --with-libarch=lib64 \ --with-webdir=/opt/zoneminder/webroot \ --with-cgidir=/opt/zoneminder/cgi-bin \ --with-webuser=apache \ --with-webgroup=apache \ --enable-mmap=no \ --disable-crashtrace \ --disable-debug \ --with-mysql \ --with-ffmpeg
mysql -uroot -proot create user 'zmuser'@'localhost' identified by 'zmpass'; create database zm; grant all privileges on zm.* to 'zmuser'@'localhost'; \. db/zm_create.sql
Listen 80 # ScriptAlias /cgi-bin /opt/zoneminder/cgi-bin
ServerName zm.local ServerAdmin webmaster@localhost DocumentRoot "/opt/zoneminder/webroot" DirectoryIndex index.php Options FollowSymLinks AllowOverride All Allow from all php_value date_timezone America/Los_AngelesScriptAlias /cgi-bin/ "/opt/zoneminder/cgi-bin" Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch AllowOverride All Allow from all# Use the first option to have Apache logs written to the general log # directory, or the second to have them written to the regular Apache # directory (you may have to change the path to that used on your system) # ErrorLog /var/log/apache/zm-error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. # LogLevel warn # Use the first option to have Apache logs written to the general log # directory, or the second to have them written to the regular Apache # directory (you may have to change the path to that used on your system) # CustomLog /var/log/zm/apache-access.log combined # CustomLog /var/log/httpd/zm-access.log combined
Edoceo provides many information technology consulting services including monitoring and infrastructure maintenance.