ZoneMinder

ZoneMinder is Article description::open source software used to capture, analyse, record, and monitor cameras.

Dependencies

 * Apache 2: www-servers/apache
 * MySQL: dev-db/mariadb
 * PHP: dev-lang/php

USE flags
Enable the following USE flags for, , and :

Emerge
Install ZoneMinder:

Apache

 * Select correct version of PHP:


 * Edit to reflect the following:


 * Edit and add   to APACHE2_OPTS :


 * There is an example config in /usr/share/doc/zoneminder*/10_zoneminder.conf.bz2:


 * Or, create an Apache vhost in

MySQL

 * Create ZoneMinder's database,, and setup a new user.


 * Import the database schema and base data, the script is created by the configure phase above, so make sure you do that first.

ZoneMinder

 * Edit and add the above MySQL database username and password:

Options -> Paths -> PATH_ZMS = /zm/cgi-bin/zms
 * By default installs as a virtual host under  - this requires PATH_ZMS to be updated in the webui:

OpenRC
Add Apache to the default runlevel and start the service:

Add PHP to the default runlevel and start the service:

Add MySQL to the default runlevel and start the service:

Add ZoneMinder to the default runlevel and start:

systemd
Enable the Apache to start on system boot and start the service:

Enable the PHP service to start on system boot and start the service:

Enable the MySQL service to start on system boot and start the service:

Enable the ZoneMinder service to start on system boot and start the service:

SELinux
When using SELinux, first create a SELinux policy for the application:

Now build the modules:

Other
Shared memory:

Upgrading
ZoneMinder includes a Perl utility to update the database schema as needed. Note: a Perl interpreter will required to run the script.

Specify the previous version and database credentials for the  database: