Zoneminder on FreeNAS

Status
Not open for further replies.

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
Version 1.01 - Added pkg install option.
 

Attachments

  • Zoneminder FreeBSD installation 1.01.pdf
    522.9 KB · Views: 2,115

SinDeus

Explorer
Joined
Sep 3, 2013
Messages
65
Version 1.01 - Added pkg install option.
I followed your guide from beginning to end, great job!

Two little tweaks I had to do though:
  • During the pkg install phase, I had to run the command twice: it stopped the first time after having installed some packages, re-running it completed the installation.
  • With my version of PHP (or PHP-FPM, I don't really know), I had to update the file located at /usr/local/etc/php-fpm.d/www.conf instead of php-fpm.conf.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I followed your guide from beginning to end, great job!

Two little tweaks I had to do though:
  • During the pkg install phase, I had to run the command twice: it stopped the first time after having installed some packages, re-running it completed the installation.

Funny ... I did run the pkg install with all and only required one pass to install all.

[LIST said:
[*]With my version of PHP (or PHP-FPM, I don't really know), I had to update the file located at /usr/local/etc/php-fpm.d/www.conf instead of php-fpm.conf.
[/LIST]

No ideas. I updated with pkg update and run the install with pkg. I didn't have time to finish the configuration and test to see if runs. A little out of time with work catching fire ;)
 

Cesaric

Cadet
Joined
Dec 2, 2015
Messages
8
@Joshua Parker Ruehlig
Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d.

root@zoneminder:/usr/local/etc/php-fpm.d # cat -n www.conf
1 ; Start a new pool named 'www'.
2 ; the variable $pool can we used in any directive and will be replaced by the
...
...
35 ; Note: This value is mandatory.
36 listen = 127.0.0.1:9000
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
@Joshua Parker Ruehlig
Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d.

root@zoneminder:/usr/local/etc/php-fpm.d # cat -n www.conf
1 ; Start a new pool named 'www'.
2 ; the variable $pool can we used in any directive and will be replaced by the
...
...
35 ; Note: This value is mandatory.
36 listen = 127.0.0.1:9000

Thanks @Cesaric. Any other changes please let me know so I can update the guide. I didn't have time to go through it with the new php version and as per your comment directories have changed ...
 

Cesaric

Cadet
Joined
Dec 2, 2015
Messages
8
Thanks @Cesaric. Any other changes please let me know so I can update the guide. I didn't have time to go through it with the new php version and as per your comment directories have changed ...

Will do... so far, you have "Americas/New_York" on your screenshot in your manual (you have it right in the description). Just need to drop the "s" on America.
 

Cesaric

Cadet
Joined
Dec 2, 2015
Messages
8
@melloa do you mind attaching your nginx.conf file? I'm getting odd formatting when I copy and paste it from the "...1.01.pdf".
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
@melloa do you mind attaching your nginx.conf file? I'm getting odd formatting when I copy and paste it from the "...1.01.pdf".

Copied from the DOC, please let me know if won't work.
 

Attachments

  • nginx config.txt
    1.6 KB · Views: 284

Cesaric

Cadet
Joined
Dec 2, 2015
Messages
8
Copied from the DOC, please let me know if won't work.
I ended up formatting manually but comparing side-by-side the my.cnf's are nearly identical.

I just finished up the instructions and got the zoneminder page to come right up in my browser. Nice work and thank you for putting that together!!!
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I ended up formatting manually but comparing side-by-side the my.cnf's are nearly identical.

I just finished up the instructions and got the zoneminder page to come right up in my browser. Nice work and thank you for putting that together!!!

Great you got it working. Will make the changes you've identified.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
@Joshua Parker Ruehlig
Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d.

root@zoneminder:/usr/local/etc/php-fpm.d # cat -n www.conf
1 ; Start a new pool named 'www'.
2 ; the variable $pool can we used in any directive and will be replaced by the
...
...
35 ; Note: This value is mandatory.
36 listen = 127.0.0.1:9000

Question:

The config been changed is still on the same folder:

root@test1:/usr/local/etc # find / -name php-fpm.conf
/usr/local/etc/php-fpm.conf


What exactly have you changed in the flow?

Yes, www.conf is found on:

root@test1:/usr/local/etc/php-fpm.d # ll
total 38
-rw-r--r-- 1 root wheel 18494 Jun 4 23:57 www.conf
-rw-r--r-- 1 root wheel 18494 Jun 4 23:57 www.conf.default
root@test1:/usr/local/etc/php-fpm.d #

But the original instructions from github README made no changes to it. Are we saying now it needs to be changed instead of php-fpm.conf?

Thanks!
 

Cesaric

Cadet
Joined
Dec 2, 2015
Messages
8
Question:

The config been changed is still on the same folder:

root@test1:/usr/local/etc # find / -name php-fpm.conf
/usr/local/etc/php-fpm.conf


What exactly have you changed in the flow?

Yes, www.conf is found on:

root@test1:/usr/local/etc/php-fpm.d # ll
total 38
-rw-r--r-- 1 root wheel 18494 Jun 4 23:57 www.conf
-rw-r--r-- 1 root wheel 18494 Jun 4 23:57 www.conf.default
root@test1:/usr/local/etc/php-fpm.d #

But the original instructions from github README made no changes to it. Are we saying now it needs to be changed instead of php-fpm.conf?

Thanks!

I believe the FPM config has been split up into two files (php-fpm.conf and www.conf) for PHP7.0 if I remember correctly. They literally just moved everything after something like line ~30 in php-fpm.conf into www.conf.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
I believe the FPM config has been split up into two files (php-fpm.conf and www.conf) for PHP7.0 if I remember correctly. They literally just moved everything after something like line ~30 in php-fpm.conf into www.conf.

hmmm ... OK ... will need to duplicate to capture all changes. Thanks for the heads-up.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Joshua Parker Ruehlig
Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d.

root@zoneminder:/usr/local/etc/php-fpm.d # cat -n www.conf
1 ; Start a new pool named 'www'.
2 ; the variable $pool can we used in any directive and will be replaced by the
...
...
35 ; Note: This value is mandatory.
36 listen = 127.0.0.1:9000
yup, I new that was the folder name, but obviously typed it wrong. I'll fix my post
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
@Joshua Parker Ruehlig @Cesaric

Just went through the steps installing with

pkg install zoneminder nginx mysql56-server php70-pdo_mysql php70-gd fcgiwrap php70-
session


and didn't have to make any changes on any config file name or location. Zoneminder started and runs fine:

upload_2016-6-26_18-36-13.png


Thoughts?
 

Attachments

  • Zoneminder FreeBSD installation 1.02.pdf
    537 KB · Views: 668
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
@Joshua Parker Ruehlig @Cesaric

Just went through the steps installing with

pkg install zoneminder nginx mysql56-server php70-pdo_mysql php70-gd fcgiwrap php70-
session


and didn't have to make any changes on any config file name or location. Zoneminder started and runs fine:

View attachment 12400

Thoughts?
not sure what you are asking, but we did integrate some fixes into the port (which may be built for pkg by now) last week.
https://github.com/freebsd/freebsd-ports/commit/8d5ce6a1bc7f1ce090c35dfb5472274281bb4bd8

You might not even need to specify 'php70-pdo_mysql php70-gd php70-session' anymore.
 

melloa

Wizard
Joined
May 22, 2016
Messages
1,749
not sure what you are asking, but we did integrate some fixes into the port (which may be built for pkg by now) last week.
https://github.com/freebsd/freebsd-ports/commit/8d5ce6a1bc7f1ce090c35dfb5472274281bb4bd8

Great, thanks for committing the fixes.

What I'm referring to is the post above that @Cesaric mentioned there was a "new" configuration file: "Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d."

I did install with php 7.0 and zonemider worked without any changes to my install steps, so trying to confirm to update the guide.

You might not even need to specify 'php70-pdo_mysql php70-gd php70-session' anymore.

Ok, I will test that.
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Great, thanks for committing the fixes.

What I'm referring to is the post above that @Cesaric mentioned there was a "new" configuration file: "Minor note; I'm going through this setup now with PHP7.0 and the config is in the php-fpm.d folder and not php-conf.d."

I did install with php 7.0 and zonemider worked without any changes to my install steps, so trying to confirm to update the guide.



Ok, I will test that.
ahh, if this is a fresh jail/VM then it should be in the php-fpm.d folder.
If not, then since you edited your php-fpm.conf, it wouldn't have been deleted, so your still using an older style config that does include the php-fpm.d folder.
 

Marcet

Contributor
Joined
May 31, 2013
Messages
193
Very interesting thread. I'm currently experimenting ZoneMinder 1.29.0 in a VirtualBox CentOS VM hosted on my FreeNAS System.
I'll migrate to a Jail as soon as I feel more confortable with it.

Any chance to see a plugin one day ?
 
Status
Not open for further replies.
Top