Zones images in zones window won't show up

Support and queries relating to all previous versions of ZoneMinder
Locked
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Zones images in zones window won't show up

Post by ynn »

Does anybody know why the image won't show up in the zone window? do i need to do something?
the error in tail /var/log/httpd/error_log
[Fri Jun 09 13:14:22 2006] [error] [client 127.0.0.1] File does not exist: /var/www/html/images/tesst1-Zones.jpg, referer: http://localhost/index.php?view=zones&mid=2

thanks.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

I cant remeber my log trace but i had this it was a permision prob on the images directory
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
voronwe
Posts: 193
Joined: Tue Jan 18, 2005 12:40 am
Location: Copenhagen Denmark

Post by voronwe »

Hi there

Remember to have the right owner / permissions on the image dir in your ZM install dir.

On a Fedora Core installe that would be : Owner = apache.apache Permissions : 755

As far as i remember the most importent is the ownership of the dir.

If t it is a permission problem you should be able to check it in your apache log files.
Best Regards
Tom Stage
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

I checked and i guess it was not because the permission on that images directory, because there are lots of images inside the directory such as
[root@localhost images]# pwd
/var/www/html/images
[root@localhost images]# ls -la
total 432
drwxrwxrwx 2 apache apache 4096 Jun 9 17:40 .
drwxr-xr-x 7 root root 4096 Jun 9 12:03 ..
-rw-r--r-- 1 apache apache 906 Jun 9 12:51 10-011-capture-15.jpg
-rw-r--r-- 1 apache apache 905 Jun 9 12:51 11-011-capture-15.jpg
-rw-r--r-- 1 apache apache 899 Jun 9 12:52 12-001-capture-15.jpg

and so on, so if it is because the permission on that images directory, the other files would not be there, would they?
may be there is some other permission that i should change, like files or something? anybody?

thanks.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

who owns the folder?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

the folder own by apache, here is it

[root@localhost html]# ls -la | more
total 1916
drwxr-xr-x 7 root root 4096 Jun 9 18:35 .
drwxr-xr-x 8 root root 4096 Jun 8 19:42 ..
-rwxr-xr-x 1 apache apache 42531 Jun 9 18:35 cambozola.jar
-rwxr-xr-x 1 apache apache 62508 Jun 9 18:35 cambozola-server.jar
drwxr-xr-x 3 apache apache 4096 Jun 9 18:28 events
-rw-r--r-- 1 apache apache 318 Jun 9 12:03 favicon.ico
drwxr-xr-x 2 apache apache 4096 Jun 9 12:03 graphics
drwxrwxrwx 2 apache apache 4096 Jun 10 11:51 images
lrwxrwxrwx 1 root root 6 Jun 9 12:03 index.php -> zm.php
drwxr-xr-x 2 apache apache 4096 Jun 9 19:25 sounds
drwxr-xr-x 2 apache apache 4096 Jun 9 12:03 temp


just FYI, I am running freshly built CentOS 4.3 x86_64 intel EMT64 now.
and one more , why the status in the index page of mine did not show "Running" like in "Screen Shot" website in zoneminder.com
my status is always ZoneMinder Console - Stopped - v1.22.2 does it mean something had gone with erros?



Thanks.[/img]
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

yes if zm is stopped it wont be getting any images, so thats your problem, you need to relove this first
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

james,
thanks for the reply, i really appreciate it since i have tried and looked so many ways to solve this problem.

but my question is now, how do you start the zm? isn't it with zmpkg.pl start ? i already did that. but it still did not do anything with that "STOPPED" message. could you tell me now how do i start the zm other than using that zmpkg.pl.

thank you so much.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

click on the stopped in the browser and selct start, then it should show running if not check your logs and report back
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
ynn
Posts: 152
Joined: Fri Mar 17, 2006 2:30 am

Post by ynn »

I finanlly got it running james, it just all because the SElinux. i turn it off and the problem all these times just gone.
thanks so much
Locked