added Debian installation instructions

This commit is contained in:
Alejandro Criado-Pérez 2021-09-30 01:15:45 +02:00
parent e462c23115
commit 1e71300a3b
No known key found for this signature in database
GPG Key ID: 766DF93C61C31C03
1 changed files with 3 additions and 45 deletions

View File

@ -32,18 +32,12 @@ Run the following commands.
sudo apt update sudo apt update
sudo apt upgrade sudo apt upgrade
sudo apt install mariadb-server
sudo apt install zoneminder sudo apt install zoneminder
**Step 3:** Initialize database When mariadb is installed for the first time, it doesn't add a password to the root user. Therefore, for security, it is recommended to run ``mysql secure installation``.
Run the following commands. **Step 3:** Setup permissions for zm.conf
::
cat /usr/share/zoneminder/db/zm_create.sql | sudo mariadb
echo 'grant lock tables,alter,create,select,insert,update,delete,index on zm.* to 'zmuser'@localhost identified by "zmpass";' | sudo mariadb
**Step 4:** Setup permissions for zm.conf
To make sure zoneminder can read the configuration file, run the following command. To make sure zoneminder can read the configuration file, run the following command.
@ -51,42 +45,6 @@ To make sure zoneminder can read the configuration file, run the following comma
sudo chgrp -c www-data /etc/zm/zm.conf sudo chgrp -c www-data /etc/zm/zm.conf
**Step 5:** Edit Timezone in PHP
Automated way:
::
sudo sed -i "s/;date.timezone =/date.timezone = $(sed 's/\//\\\//' /etc/timezone)/g" /etc/php/7.*/apache2/php.ini
Manual way
::
sudo nano /etc/php/7.*/apache2/php.ini
Search for [Date] (Ctrl + w then type Date and press Enter) and change
date.timezone for your time zone. Don't forget to remove the ; from in front
of date.timezone.
::
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/New_York
CTRL+o then [Enter] to save
CTRL+x to exit
**Step 6:** Reload Apache and start zoneminder
Run the following commands.
::
sudo systemctl reload apache2
sudo systectl start zoneminder
Congratulations! You should now be able to access zoneminder at ``http://yourhostname/zm`` Congratulations! You should now be able to access zoneminder at ``http://yourhostname/zm``
Easy Way: Debian Buster Easy Way: Debian Buster