Search found 33 matches

by n8klayko
Mon Apr 30, 2018 2:22 am
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

I found this code located in my apache's httpd.conf file. The path's were set correctly, but the "AllowOverride" and "Options" were set differently than your's. I changed those two line to reflect yours, but that did not change anything with zmNinja. did you re-start Apache and ZM after changing th...
by n8klayko
Mon Apr 30, 2018 2:12 am
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

So your APIs work finally on the browser but not on zmNinja? If so (that is, all APIs work on the browser) I can try and help. I've been doing a lot of cleanup 1. I'd like you to test a new version of the desktop port of zmNinja (easier to test) 2. Let me know your desktop OS 3. When you run his ne...
by n8klayko
Mon Apr 30, 2018 2:07 am
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

In your Apache site-enabled configuration or the Apache conf-enabled zoneminder.conf check that the correct actual paths and Alias for /cgi-bin/ are correct. This is a piece from the stock /etc/apache2/conf-avialable/zoneminder.conf which I do not use since I am running Hiawatha instead of Apache a...
by n8klayko
Fri Apr 27, 2018 3:03 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

When testing " http://your-zm-server/zm/cgi-bin ", I get a not found error, but this makes sense since this doesn't match my directory structure. However, when I tested " http://your-zm-server/cgi-bin ", I get a " Forbidden ", " You don't have permission to access /cgi-bin/ on this server. " message...
by n8klayko
Thu Apr 26, 2018 12:35 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

I removed all authentication, but this did not help. zmNinja freezes during logon (because the default page is the monitors page). If I cancel logon, then press save, the app will log on and act as if everything is working (both with and without authentication). The issue is that the app completely ...
by n8klayko
Wed Apr 25, 2018 4:28 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

The path to my cgi-bin in zmNinja is " http://serverIP/cgi-bin ". This is correct in terms of folder structure. The other thing to note is that my zmNinja app with freeze an not go past the initial authentication screen unless manually cancel authentication. I do have zmNinja debugging enabled and h...
by n8klayko
Wed Apr 25, 2018 2:24 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

this is a again a URL re-write problem. look in the .htaccess files or your http.conf that the proper url is formed. http://your-zm-server/zm/api/host/getVersion.json should be http://your-zm-server/api/host/getVersion.json since reaching the web console must be the url http://your-zm-server/index....
by n8klayko
Tue Apr 24, 2018 9:05 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

Also, thanks again for all your help! :D
by n8klayko
Tue Apr 24, 2018 9:04 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

I created the " zm " directory under my " /var/log/ " directory and CakePHP is no longer giving an error. However, I am still not getting anything when I go to " http://serverIP/api/host/getVersion.json ". Again, it is important to note that the jail install does not require the " zm " added to the ...
by n8klayko
Mon Apr 23, 2018 2:24 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

I am very close on this. The mkdir CakePHP issue is the only thing that looks to be preventing the API from working. I am not sure if this is a permission error or an error in a config file. Any guidance would be greatly appreciated.
by n8klayko
Thu Apr 19, 2018 4:26 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

When testing the APIs, by going to http://server/api/host/getVersion.json , I am still receiving a 404 Not found error. Again, because this is directly in a FreeNAS Jail, the /zm/ is not needed for the correct path. The path to my server is http://server/ without the added /zm/ directory Looking at ...
by n8klayko
Wed Apr 18, 2018 6:35 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

I managed to fix the rewrite issue. In my system httpd.conf file, the line LoadModule rewrite_module libexec/apache2/mod_rewrite.so was commented out. I removed the proceeding " # " as explained here: https://book.cakephp.org/2.0/en/installation/url-rewriting.html Additionally, I had to change my .h...
by n8klayko
Wed Apr 18, 2018 4:38 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

@rockedge, you are correct, it looks like a rewrite issue. Any thoughts?
error.PNG
error.PNG (21.63 KiB) Viewed 2373 times
Also, I really appreciate you taking the time to help me out on this! Thanks!
by n8klayko
Wed Apr 18, 2018 4:01 pm
Forum: ZoneMinder 1.30.x
Topic: Zoneminder 1.30.4 API not working on FreeBSD
Replies: 47
Views: 7682

Re: Zoneminder 1.30.4 API not working on FreeBSD

rockedge wrote:
Wed Apr 18, 2018 3:41 pm
what version of PHP are you using?
After checking the PHP version using

Code: Select all

php -i
, it shows that PHP 5.6.34 is installed in my ZM jail.