Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://wiki.zoneminder.com/Ubuntu

sudo su
echo "" | add-apt-repository ppa:iconnor/zoneminder-master
apt-get update
apt-get install -y zoneminder php5-gd

Replace [MySQL_Root_PWD]

sudo mysql -uroot -p[MySQL_Root_PWD] < /usr/share/zoneminder/db/zm_create.sql
mysql -uroot -p[MySQL_Root_PWD] -e "grant select,insert,update,delete,create,alter,index,lock tables on zm.* to 'zmuser'@localhost identified by 'zmpass';"
nano /etc/init.d/zoneminder 

/etc/init.d/zoneminder

start() {
   sleep 10
   echo -n "Starting $prog: "
sudo nano /etc/php5/apache2/php.ini

 

/etc/php5/apache2/php.ini Time Zone Formats

;;;;;;;;;;;;;;;;;;;
; Module Settings ;
;;;;;;;;;;;;;;;;;;;

[CLI Server]
; Whether the CLI web server uses ANSI color coding in its terminal output.
cli_server.color = On

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York 

 

 

a2enconf zoneminder
a2enmod cgi
a2enmod rewrite
chown www-data:www-data /etc/zm/zm.conf
/etc/init.d/zoneminder restart

Update: V1.3

Symlink Required:

sudo ln -s /usr/share/zoneminder/www /var/www/html/zoneminder

 

 

http://server/zoneminder

Check API Status @

http://localhost/zoneminder/api

I had to change the PATH_ZMS variable under Options>> Path.

It was missing the /zm/

NoMonitorZM

Forward domain.com to domain.com/zm

sh -c 'echo "RedirectMatch ^/$ /zm/" >> /etc/apache2/apache2.conf' && service apache2 restart
  • No labels

1 Comment