Zoneminder API not found
Posted: Fri Jul 01, 2016 1:23 am
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?
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?