Line 9: |
Line 9: |
| ====Requirements==== | | ====Requirements==== |
| Zoneminder is available from the Zoneminder repository. You need to configure the '''[[zmrepo]]''' as explained [[zmrepo| here]]. | | Zoneminder is available from the Zoneminder repository. You need to configure the '''[[zmrepo]]''' as explained [[zmrepo| here]]. |
| + | |
| + | ====Install Zoneminder from the zmrepo==== |
| + | yum install zoneminder --enablerepo=zmrepo |
| + | Zoneminder's configuration file is located at /etc/zm.conf. Not really known if it is required, but you can change the Apache user in the zm.conf file from apache:apache to www:www, and double check the database credentials in the same file with the ones you have used. |
| + | |
| + | ====MySQL database==== |
| + | Zoneminder works 'best' with InnodeDB enabled. As root issue: |
| + | db configuration setprop mysqld InnoDB enabled |
| + | expand-template /etc/my.cnf |
| + | sv t /service/mysqld |
| + | |
| + | Zoneminder uses MySQL for the storage of picture data, so we need to create a new database. As root issue: |
| + | mysql |
| + | create database '''zm'''; |
| + | grant all privileges on '''zm'''.* to '''zmuser''' identified by ''''zmpass''''; |
| + | flush privileges; |
| + | exit |
| + | Then we populate the new database: |
| + | mysql '''zm''' < /usr/share/zoneminder/db/zm_create.sql |
| + | The above bold credentials should be replaced by your own information. |
| + | |
| + | |
| + | ====Create custom templates==== |
| + | mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/ |
| + | cp /etc/httpd/conf.d/zoneminder.conf /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf/98zoneminder |
| + | expand-template /etc/httpd/conf/httpd.conf/ |
| + | service https-e-smith restart |
| + | |
| + | ====Start Zoneminder at boot==== |
| + | config set zoneminder service status enabled |
| + | ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S92zoneminder |
| + | |
| + | You can now start Zoneminder manually: |
| + | service zoneminder start |
| + | |
| + | And access the Zoneminder portal at http://yourserver.com/zm, and login as admin admin |