ZoneMinder video camera security and surveillance: Difference between revisions

From Alpine Linux
(Created page with "Currently zoneminder has to be installed from edge if you want to follow this howto apk add zoneminder@edge mysql mysql-client phpmyadmin lighttpd php-fpm setup mysql /etc/i...")
 
No edit summary
Line 1: Line 1:
Currently zoneminder has to be installed from edge if you want to follow this howto
Currently zoneminder has to be installed from edge, make sure you have edge as pinned repo when you use stable.


apk add zoneminder@edge mysql mysql-client phpmyadmin lighttpd php-fpm
ZoneMinder usually runs with apache, but in this short howto we use lighttpd.


setup mysql /etc/init.d/mysql setup
First add the needed packages to our system
set root password for mysql


change user/group to lighttpd in /etc/php/php-fpm.conf
apk add zoneminder@edge mysql mysql-client lighttpd php-fpm # add phpmyadmin if you like to manage mysql from web interface
 
Initialize mysql database
 
/etc/init.d/mysql setup
 
set root password for mysql as instructed by mysql setup
 
We are running lighttpd so lets run php-fpm as lightppd user/group
 
vim /etc/php/php-fpm.conf
 
uncomment the php cgi fpm config in lighttpd.conf
 
vim /etc/lighttpd/lighttpd.conf


start lighttpd and php-fmp
start lighttpd and php-fmp


set permission of phpmyadmin config to lighttpd
/etc/init.d/lighttpd start
 
/etc/init.d/php-fpm start

Revision as of 17:17, 24 June 2014

Currently zoneminder has to be installed from edge, make sure you have edge as pinned repo when you use stable.

ZoneMinder usually runs with apache, but in this short howto we use lighttpd.

First add the needed packages to our system

apk add zoneminder@edge mysql mysql-client lighttpd php-fpm # add phpmyadmin if you like to manage mysql from web interface

Initialize mysql database

/etc/init.d/mysql setup

set root password for mysql as instructed by mysql setup

We are running lighttpd so lets run php-fpm as lightppd user/group

vim /etc/php/php-fpm.conf

uncomment the php cgi fpm config in lighttpd.conf

vim /etc/lighttpd/lighttpd.conf

start lighttpd and php-fmp

/etc/init.d/lighttpd start
/etc/init.d/php-fpm start