I'm working through the guide (building zoneminder right now), and of course there are a lot of option screens for a lot of packages that are pulled in as dependencies for zoneminder. So far, I'm leaving them all at the default setting. Is this correct, or should any of them be changed?
I'm suspecting that the zoneminder build might go faster (fewer dependencies to build) if the FEMP stack is installed first, but for the first go, I'm just working through the steps in order.
You can disable all X related stuff for any port (you, obviously don't need X on the server) and all options from ffmpeg except SSE/MMX and fontconfig/true type support. This will save you hours compiling (because something pulls llvm on default settings).I'm working through the guide (building zoneminder right now), and of course there are a lot of option screens for a lot of packages that are pulled in as dependencies for zoneminder. So far, I'm leaving them all at the default setting. Is this correct, or should any of them be changed?
I'm suspecting that the zoneminder build might go faster (fewer dependencies to build) if the FEMP stack is installed first, but for the first go, I'm just working through the steps in order.
You can disable all X related stuff for any port (you, obviously don't need X on the server) and all options from ffmpeg except SSE/MMX and fontconfig/true type support. This will save you hours compiling (because something pulls llvm on default settings).
Just to reiterate, if 'pkg install zoneminder' worked as intended it would pull in all the php dependencies you need, but since everyone seems to be compiling from ports using 'pkg' first does speed things up. For example if I were documenting this, this is all I would have 'pkg install zoneminder fcgiwrap nginx mysql56-server'I wouldn't know how to answer those questions. In my case I did let all default options to be installed for ZM when making. You might be right when saying that removing some can speed up things, but I'd think that only the port maintainer would know. His e-mail is at the last page of the document.
The first version I wrote had FEMP been installed first, but I was told that was better do ZM first to let it install all dependencies, so changed the order.
That also caused (or helped) us to find some dependencies that were not installed, not sure because the assumption that FEMP was installed to begin with by the port maintainer, but when you look what I installed here:
pkg install nginx mysql56-server php56-mysql php56-pdo_mysql php56-gd fcgiwrap php56-session
It is a little bit more than a "regular" FEMP, I think, but again I know zero about BSD/Linux/etc.
Talking about the above line, I just noticed that the word "session" split to a second line when I copied and pasted, so get this in one line to install all (like I needed to tell you this :) )
Also please let me know if you have any problem with the sample for nginx.conf. I've installed last night on my FreeNAS jail and it copied funny from the doc, so I used the original from the FreeBSD VM. That actually worked on FN with my 10 cameras.
yeah, wasn;t saying you were doing it wrong, just clarifying pkg should be doing the dependencies for us.pkg is pulling the old version (1.25) when the stable one is 1.29, so you asked me to make instead. php56-gd is needed if you plan to use ZMNinja as per Abi, so I'd think could be added as dependency for the new go around with the others I'm installing that you'd not consider part of a regular FEMP...
Is anyone else having trouble downloading packages? I've been getting persistent, but inconsistent, timeouts from pkg.FreeBSD.org for the last day or so trying to download anything.
Finally!
I've got it working in a vanilla FreeNAS 9.10 jail. I started from scratch, but encountered lots of issues.
Next step: start again (from another brand new jail). To be sure that the guide works.
Actually, I installed without following your guide, for I haven't noticed it! By comparing the two, I see that we did things the same way (I just went for PHP 7.0 instead of 5.6). Great guide! I'll follow it for my next test.Thanks for testing. I did install it twice from the guide and did work. If you find anything that can be changed to make it easier and/or if there are any missing/wrong steps, please let me know so I can make the changes.
Actually, I installed without following your guide, for I haven't noticed it! By comparing the two, I see that we did things the same way (I just went for PHP 7.0 instead of 5.6). Great guide! I'll follow it for my next test.
PHP 7.0 is overall a good iteration of PHP, with all the retro-compatability you could expect. So, if nothing breaks (I have no complaint so far), you can go with it.
I also installed ZM 1.30: I will test it out for a few days to see if there are issues with it. But it's strange: I pulled the 1.30 version from pkg, whereas you got the 1.25...
I think you can toss it, the php70-pdo_mysql should be enough.php56-mysql