Page 1 of 1

lost image in zones

Posted: Wed Mar 08, 2006 11:20 am
by jameswilson
I have upgraded a box from 1.21.3 to 1.22.0 and had a power failure during the rpm upgrade process. As such half the db's were altered and half werent. Anyway i finally got it up and run and all seems great apart from i cant see an image in the zone setup. In the log i have
Mar 8 11:16:22 localhost zmu[3614]: ERR [Can't open Cam_1-Zones.jpg: Permission denied]
So im assuming i have a permission problem. But i dont know how or where to change this. Any ideas?

Posted: Wed Mar 15, 2006 11:42 pm
by zoneminder
This is either that you don't have permissions on the images directory below /var/www/html (or equivalent) or that you have created that file as root and nowe apache is refusing to overwrite it.

Posted: Wed Mar 15, 2006 11:49 pm
by jameswilson
cheers Phil.
Whats the easist way to change this can i use my friend webmin

Posted: Wed Mar 15, 2006 11:52 pm
by zoneminder
You probably can use webmin but I would suggest using ssh and doing

Code: Select all

chown -R apache:apache /var/www/html/zm/images
subtituing the appropriate web user and path etc. This is normally done during install so I don't know if that means that other things were not completed. I would check the other directories under your zm dir and apply the same operation.

Posted: Wed Mar 15, 2006 11:55 pm
by jameswilson
i have checked an apache owns everything in the zm folder

Posted: Thu Mar 16, 2006 12:01 am
by zoneminder
Then does the Cam jpeg image already exist and if so who owns that? Also are the directories writable?

Posted: Thu Mar 16, 2006 12:03 am
by jameswilson
hold fire i just realised im checkin the wrong box lol hang on

Im such a d1ckhead most of the time!!!!

Posted: Thu Mar 16, 2006 12:07 am
by jameswilson
right once i checkeed the right box it was indeed the images folder was owned by root!

Thanks all sorted