I've been using a zoneminder 1.29 for a few months on a computer, and am setting up a new computer with it. I've got the new computer's install working, but cannot get the API to work.
Ubuntu 14.04. Installed from the iconnor ppa
OPT_USE_API is set to true (and restarted Zoneminder and apache several times).
OPT_USE_AUTH is also set to true
http://localhost/zm works. I've scanned through settings and not found anything different.
http://localhost/zm/api/host/getVersion.json gives a 404 on new machine.
http://server/zm/api loads, but is pure text. On old machine, it has fancy green status bars. Both have exact same CakePHP version and almost all text is the same. New install gives error "URL rewriting is not properly configured on your server." but I've had no luck following http://book.cakephp.org/2.0/en/installa ... iting.html and /etc/apache2/apache2.conf is identical between machines.
Same versions of php5, zoneminder, apache2
Identical layouts of /usr/share/zoneminder/
14.04 tutorial doesn't give any info about API enabling
16.06 tutorialmentions /etc/apache2/apache2.conf, but both machines have the same file
I did initially somehow end up with an install of 1.26.5, which I successfully upgraded to 1.29.0 (using `sudo zmupdate.pl -v 1.26.5` on my empty database).
Any thoughts on what I'm missing?
Zoneminder API not found
Re: Zoneminder API not found
I noticed that I had php5 installed on the new one (i believe i Installed that prior to looking at the tutorial more closely). I apt-get purged that, and the output of `dpkg -l php5*` is now identical on both machines.
Also note that the new machine is basically a fresh install of ubuntu
Also note that the new machine is basically a fresh install of ubuntu
-
- Posts: 494
- Joined: Sun Jun 29, 2014 1:12 pm
- Location: Melbourne, AU
Re: Zoneminder API not found
Fresh as in you installed 1.26.5, then installed 1.29.0 from PPA?gert wrote:Also note that the new machine is basically a fresh install of ubuntu
Maybe the web folder is pointing at a 1.26.5 version, as that would not have the API files, I think it is /usr/share/ZoneMinder/www by default, have a look and see if you have an API folder, can check that apache conf to see where it is pointing. But if a fresh install nothing lost to kick it again and only install from the PPA, if I am correct that you did 1.26.5 first on it.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
Random Selection of Cameras (Dahua and Hikvision)
Re: Zoneminder API not found
What you are likely missing is a fresh install of Ubuntu, in either case you mentioned. Both of the tutorials were written to use Ubuntu server with LAMP installed from tasksel. Yes, if you install a desktop version of Ubuntu you can still install LAMP with tasksel just install taskel first.
As for the API's, they will be installed with Zm 1.29.0. Just don't skip steps in the tutorials. It has been proven time and again that those instructions work!
There is an old saying... When all else fails, read the instructions!
bb
As for the API's, they will be installed with Zm 1.29.0. Just don't skip steps in the tutorials. It has been proven time and again that those instructions work!
There is an old saying... When all else fails, read the instructions!
bb
Re: Zoneminder API not found
Thanks folks. I did end up fixing this by re-installing zoneminder from scratch.