Page 4 of 5

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 1:19 am
by Pedulla
bbunge wrote: If you run Zoneminder long enough with lots of events, you will have to tune the MySQL, or Mariadb, settings.

bb
Can someone please quantify "lots" of events?

1,000; 10,000; 100,000...

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 2:56 am
by Pedulla
Bam!

Nailed it first time through with the Mariadb install.
Nice work!

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 6:48 am
by SteveGilvarry
@sigge And if all installed as per bbunge, then as per MJN, enable php in apache, using MJN's command, or maybe this

sudo a2enmod php7.0

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 11:25 am
by Sigge
I "purged" all the packages including mysql. Just kept apache2. Then reinstalled them all.

Now it works!

Just have to make my camera work.....

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 12:23 pm
by caseyj
Can someone do this
with Ubuntu 16.04 Server Release ? :oops: :oops:

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 03, 2016 4:22 pm
by bbunge
caseyj wrote:Can someone do this
with Ubuntu 16.04 Server Release ? :oops: :oops:
Wait for it. Am still working on upgrade procedures, which work sometimes, fighting for a warranty claim on my Maytag heat pump, and other "life" issues.

bb

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Wed May 04, 2016 4:55 am
by caseyj
Wait for it
Sure. Thanks so much for your effort !

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Mon May 23, 2016 9:05 pm
by Zsolt
Hi guys,
I'm stuck here:

Code: Select all

sudo mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
result:

Code: Select all

ERROR 1819 (HY000) at line 562: Your password does not satisfy the current policy requirements
although my settings are:

Code: Select all

mysql> SHOW VARIABLES LIKE 'validate_password%';
+--------------------------------------+-------+
| Variable_name                        | Value |
+--------------------------------------+-------+
| validate_password_dictionary_file    |       |
| validate_password_length             | 8     |
| validate_password_mixed_case_count   | 1     |
| validate_password_number_count       | 1     |
| validate_password_policy             | LOW   |
| validate_password_special_char_count | 1     |
+--------------------------------------+-------+
6 rows in set (0.03 sec)
any help is appreciated.

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Mon May 23, 2016 11:56 pm
by bbunge
Do not use sudo

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 8:53 am
by Zsolt
same result

Code: Select all

kamera@dvr:~$ mysql -uroot -p < /usr/share/zoneminder/db/zm_create.sql
Enter password:
ERROR 1819 (HY000) at line 562: Your password does not satisfy the current policy requirements

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 9:04 am
by MJN
You could always change the password ('zmpass') to something that satisfies the minimum requirements listed. You will have to make sure it is reflected in /etc/zm.conf too.

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 9:32 am
by Zsolt
The message above is related to zmuser or root?
I think it's root. The root password contains upper case, lover case, numbers and special characters.

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 11:36 am
by bbunge
Use the password you set up with mysql or mariadb

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 1:39 pm
by MJN
Apologies I didn't spot that it was the MySQL root user. Disregard my suggestion! (or simplify the root password if acceptable from a security perspective).

Re: Ubuntu 16.04 Release with Zoneminder 1.29.0

Posted: Tue May 24, 2016 5:07 pm
by Zsolt
Nothing helped. Wiped everything and started from scratch.

Followed this tutorial -> https://wiki.zoneminder.com/Ubuntu_Serv ... e_easy_way but now apache2 won't start.

Code: Select all

service apache2 reload
returns

Code: Select all

Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details.

Code: Select all

systemctl status apache2.service

Code: Select all

root@dvr:/home/kamera# systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
   Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
  Drop-In: /lib/systemd/system/apache2.service.d
           └─apache2-systemd.conf
   Active: active (running) (Result: exit-code) since Tue 2016-05-24 19:43:11 EEST; 22min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 567 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE)
   CGroup: /system.slice/apache2.service
           ├─27441 /usr/sbin/apache2 -k start
           ├─27444 /usr/sbin/apache2 -k start
           ├─27445 /usr/sbin/apache2 -k start
           └─27446 /usr/sbin/apache2 -k start

May 24 20:05:02 dvr apache2[567]:  * Reloading Apache httpd web server apache2
May 24 20:05:02 dvr apache2[567]:  *
May 24 20:05:02 dvr apache2[567]:  * The apache2 configtest failed. Not doing anything.
May 24 20:05:02 dvr apache2[567]: Output of config test was:
May 24 20:05:02 dvr apache2[567]: AH00526: Syntax error on line 11 of /etc/apache2/conf-enabled/zoneminder.conf:
May 24 20:05:02 dvr apache2[567]: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
May 24 20:05:02 dvr apache2[567]: Action 'configtest' failed.
May 24 20:05:02 dvr apache2[567]: The Apache error log may have more information.
May 24 20:05:02 dvr systemd[1]: apache2.service: Control process exited, code=exited status=1
May 24 20:05:02 dvr systemd[1]: Reload failed for LSB: Apache2 web server.
my zoneminder.conf

Code: Select all

root@dvr:/home/kamera# cat /etc/apache2/conf-enabled/zoneminder.conf
# Remember to enable cgi mod (i.e. "a2enmod cgi").
ScriptAlias /zm/cgi-bin "/usr/lib/zoneminder/cgi-bin"
<Directory "/usr/lib/zoneminder/cgi-bin">
    Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
    AllowOverride All
    Require all granted
</Directory>

Alias /zm /usr/share/zoneminder/www
<Directory /usr/share/zoneminder/www>
  php_flag register_globals off
  Options Indexes FollowSymLinks
  <IfModule mod_dir.c>
    DirectoryIndex index.php
  </IfModule>
</Directory>