Reinstall problems

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
Sider
Posts: 2
Joined: Fri Jun 12, 2020 9:07 pm

Reinstall problems

Post by Sider »

Hi all,

I was successfully running Zoneminder 1.34.16 on Ubuntu 18.04 without any issues however I accidentally uninstalled it when running

Code: Select all

apt purge php7.4*
it included zoneminder for some reason and I missed it the list.
Anyway, when I realized what happened I simply reinstalled it with

Code: Select all

apt install zoneminder
I have all settings restored , video archive available, cameras working, but two things went wrong:
  • I can see no Live video stream (camera offline in each window), although cameras work and I can see video recorded.
  • API does not work, When opening

    Code: Select all

    myserver/zm/api/
it shows:

Code: Select all

CakePHP: the rapid development php framework
Not Found
Error: The requested address '/api/' was not found on this server.

CakePHP: the rapid development php framework
CakePHP 2.10.8
I checked the permissions for api folder - its www-data, but some folders and files seem to be missing in api:

Code: Select all

root@nas:/# ls -l /usr/share/zoneminder/www/api
total 40
drwxr-xr-x 10 www-data www-data  4096 июн 12 21:41 app
-rw-r--r--  1 www-data www-data   174 июн  9 19:10 build.properties
-rw-r--r--  1 www-data www-data 10315 июн  9 19:10 build.xml
-rw-r--r--  1 www-data www-data   837 июн  9 19:10 composer.json
-rw-r--r--  1 www-data www-data  3252 июн  9 19:10 CONTRIBUTING.md
-rw-r--r--  1 www-data www-data  1454 июн  9 19:10 index.php
drwxr-xr-x  3 www-data www-data  4096 июн 12 21:41 lib
-rw-r--r--  1 www-data www-data   437 июн  9 19:10 README.md
I did some research on forums, but without any result. Need help to restore those functions and keep the data (without fresh install)
SkippyDo
Posts: 221
Joined: Mon Nov 20, 2017 6:49 pm

Re: Reinstall problems

Post by SkippyDo »

I thought only this kind of thing happened to me :o

Does the ZM console come up/display in a web browser? Almost sounds like the web server doesn't know about ZM. Check https://zoneminder.readthedocs.io/en/st ... -04-bionic: looks like perhaps step 7 could be all that's necessary.
Sider
Posts: 2
Joined: Fri Jun 12, 2020 9:07 pm

Re: Reinstall problems

Post by Sider »

Worked like a charm! I'm so grateful, mate.

However initial including zoneminder in php removal command looks wrong on the first place. This command can be found at many debian forums, so zoneminder dependencies a might be worth a look.
Post Reply