Ubuntu - HTTP Error 500 on API
Posted: Tue Oct 02, 2018 3:13 pm
Hello, I've followed the guide to install Zoneminder on Ubuntu 16.04 (Easy way), which all went well. After that, I was encouraged to enable OPT_AUTH, which I could not find. I did find OPT_USE_AUTH, which is now enabled (I assume that's the same). I can successfully login http://server/zm, configure camera's en view them. I have tried the zmview app on the smartphone, works. But znNinja does not, it claims that it cannot find a valid API.
So I started to troubleshoot API, it already goes wrong at http://server/zm/api/host/getVersion.json, which gives me HTTP Error 500. Even when I login first and then open this page, it is giving me the same error. The /api/Config/database.php file is in place and all is running on the same server.
I expect it has something to do with PHP dependencies not being met, but I don't know which one. Right now I am running PHP version 7.2 on Ubuntu 16.04 LTS. I hope someone can help me out
So I started to troubleshoot API, it already goes wrong at http://server/zm/api/host/getVersion.json, which gives me HTTP Error 500. Even when I login first and then open this page, it is giving me the same error. The /api/Config/database.php file is in place and all is running on the same server.
I expect it has something to do with PHP dependencies not being met, but I don't know which one. Right now I am running PHP version 7.2 on Ubuntu 16.04 LTS. I hope someone can help me out