mysql -e "create database zm"
mysql -e "grant all on zm.* to āzmuserā identified by 'YOUR_PASSā"
mysql < /usr/share/zoneminder/db/zm_create.sql
echo ā/etc/zm.confā > /etc/backup-config.d/zoneminder.include
edit /etc/zm.conf
ZM_DB_PASS=āYOUR_PASSā
edit /etc/httpd/conf.d/zoneminder.conf and delete (or edit to restrict the access) the row:
As recently there were some questions about ZoneMinder installation Iāve decided to
create a wiki page for ZoneMinder, having this howto as basis. For both, NS6 and NS7.
If you see any error or something missing, please report it or add it to the guide.
Works great, thanks!
Although I messed something up in creating the user (I guess), but deleting user and database and restart fixed it.
Now working on configuring my cams.
(What is easiest way to disable the firewall for testing purposes? āservice shorewall stopā?)
Sorry for late reply.
Yes, that should do it (althought some admins will recommend against stopping it, for security reasons).
Note changing nethserver settings might start shorewall.
Zm is running smoothly, now I am trying to find out all capabilities of this suite.
Iāve encountered 1 error so far:
the entries in e.g. logfile are off by 1 hour .
On the main page, it says now (21:37 CET):
Mon 12th Dec, 8:37pm
whereas the link ālogā brings up a window with logentries:
2016-12-12 20:37:55
So. theyāre off by one hour.
When looking at live streams of a cam, the time displayed in the capture is right.
Iāve googled for it, and I see answers that you should edit php.ini.
But, there are many ini files parsed by php. And, are any other applications impacted when I edit php.ini (or one of the parsed files).
BTW: just adding my TZ to php.ini and restart apache & zoneminder didnāt change the time on the admin-page or logā¦
I donāt know, we may ask someone from the @dev_team
The value is set to UTC in nethserver.ini template, and it overrides the value you set in php.ini
A possible workaround is a custom template:
mkdir -p /etc/e-smith/templates-custom/etc/php.d/nethserver.ini/
echo ādate.timezone = āYOUR_TIMEZONEāā > /etc/e-smith/templates-custom/etc/php.d/nethserver.ini/20timezone
expand-template /etc/php.d/nethserver.ini
systemctl restart httpd
In this way itās workingā¦ but better wait until we hear from the developers.
Regards.
Edit: no need for a custom template. The php timezone can be set with the command:
Did try it.
Had to be followed by
signal-event nethserver-php-update
and I also did a service httpd restart (donāt know if it was necessary).
But now the time in ZM is right!
(hopefully I donāt find other applications that are now an hour aheadā¦
Are you reading my mind? jk
I was testing it and about to update the guide.
Both commands are necessary. Iāve to test it on NS6.8, but I think itās the same.
Edit: On NethServer 6.8 the php timezone is already set correctly, matching the one from the timezone page in server-manager. Not so on NS7, so maybe you have found a bug
PHP timezone has been reverted to upstream default which is UTC.
The code to set the timezone using the system time was ugly and could cause unexpected behavior.
IMO one of the reasons this can occur is when ZoneMinder fails to get the stream from the camera.
Iāve seen the same error when configuring a webcam. In that particular case was due to misconfiguration (wrong capture width/height). So just in case, recheck the monitor parameters are within the manufacturer specs. Surrounding log events might give some clues.
There also are some helpers, like the Probe and Presets links, the zmu command (eg. zmu -d /dev/video0 -qv), or the Hardware Compatibility List.
thanks a lot Marc, i do the setup with the compatibility list. it happens when the camera is moving but after a reboot of the server it works. but also a manual restart from command line did not work. do you have a idea for an app under ios? ZM View with Android works great, with Ios dont get a connect and receive connection errors at the server. Same Configuration as on Android. Have a great Friday !!!