Broken images and Access Denied, please help

Support and queries relating to all previous versions of ZoneMinder
Locked
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Broken images and Access Denied, please help

Post by michaelng »

Hi,

I am getting broken images and access denied message when I tried to view the streaming images. When I right click on the image and select 'view image', it returns a message:

You don't have permission to access /cgi-bin/mph-zms on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
My ZM_PATH_ZMS is set to /cgi-bin/mph-zms

Doing ls -al on /var/www gives me:
lrwxrwxrwx 1 root root 30 Nov 25 2002 cgi-bin -> /initrd/loopfs/var/www/cgi-bin
lrwxrwxrwx 1 root root 28 Nov 25 2002 error -> /initrd/loopfs/var/www/error
lrwxrwxrwx 1 root root 28 Nov 25 2002 icons -> /initrd/loopfs/var/www/icons
lrwxrwxrwx 1 root root 27 Nov 25 2002 perl -> /initrd/loopfs/var/www/perl

Content of /etc/httpd/conf/comonhttpd.conf is:

Code: Select all

    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/

<Directory /var/www/cgi-bin>
    AllowOverride All
    Options ExecCGI
    <IfModule mod_access.c>
      Order allow,deny
      Allow from all
    </IfModule>
</Directory>

I am not sure what is causing the access denied error? I am familiar with apache setup via windows, but I am not sure what to make of the cgi-bin link in the /var/www/ directory. To me, it seems like it's looping onto itself? Where is the real cgi-bin directory?

Also, I setup a port forward via my routher say port 90. So that it goes to http://myserver:90/zm/. I added a line 'Listen 90' in httpd2.conf and it seems to work, but if I just do http://myserver/zm/ - it seems to work also.

The line 'Listen 90' was missing from the file, so I assume it is default and would think that once I added this line it would have overrided it. I the installation I have is the latest LiveCD using zm 1.21.4.

Thanks for any help.
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Post by michaelng »

After some further invetigating, I think the installation from the LiveCd is flawed or something. The files from /var/www/cgi-bin are missing and instead there is some sort of a symblic link which leads to no where.

Am i correct in assuming that? I know I didn't delete anything, the only settings I have changed is added a Listen port.

Weird? Anyone has any idea?
michaelng
Posts: 14
Joined: Sat Jul 23, 2005 10:39 am

Post by michaelng »

I did an upgrade via rpm to version 1.22 and it replace the symblic link cgi-bin with the real files. I don't know what happened during the live cd installed but it seems to have created the sybolic link instead of the actual files.
Locked