Page 1 of 1

Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Thu Nov 15, 2018 8:15 pm
by f1d094
I've just completed an upgrade from 1.30 on Xenial to 1.32 on Bionic. Post-upgrade the interface looked pretty miserable but was mostly functional...some poking revealed the following symlink was missing. The interface now looks pretty sharp.

Code: Select all

 ln -s /var/cache/zoneminder/cache /usr/share/zoneminder/www/cache 
Just posting for devs and so others who have suffered the same headache mind find it useful.

Re: Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Fri Nov 16, 2018 1:21 am
by knight-of-ni
No, this is wrong. Do not create symlinks in your webroot. Fix the script alias in your web browser config instead.

Re: Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Sat Nov 17, 2018 12:44 am
by f1d094
knight-of-ni wrote: Fri Nov 16, 2018 1:21 am No, this is wrong. Do not create symlinks in your webroot. Fix the script alias in your web browser config instead.
Thank you for that. I had seen this advice elsewhere and since it had worked I did not think further.

However, you say "script alias"...in my apache config it is just a standard directory "Alias". Should this be a "ScriptAlias"?

Re: Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Sat Nov 17, 2018 2:14 am
by knight-of-ni
No, you're absolutely right. It's just an alias not a script alias.

Exactly how you set up the alias is distro & web server dependent. If you need help setting that up, let us know what you are running.

Re: Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Tue Nov 20, 2018 4:31 pm
by rockedge
In Puppy Linux (Ubuntu binaries) it works best by just symlinking /var/cache/zoneminder/cache in /usr/share/zoneminder/www

for some reason the Alias declaration works only sometimes. Also the permissions are not set correctly during any automated install so when using a distro like this there is some manual work out of the box to do to get ZM to run...but when it does finally go...
ZM will run very nicely and is very responsive.....I can run ZM 1.32.2 with a Bionic OS monitoring 2 netcams in 600megs of RAM or less...Puppy Linux Tahr I can run ZM 1.32.2 with OS in 350 megs of RAM with 2 net cams...so with an 8 meg RAM machine I can really have some room for /dev/shm

Re: Upgrade Protip: critical symlink may be missing post xenial to bionic upgrade

Posted: Fri Nov 23, 2018 1:45 pm
by knight-of-ni
If the Alias only works sometimes, then that is an indication you've got something else not quite right on your system.