Web access stumping me

Support and queries relating to all previous versions of ZoneMinder
Locked
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

Web access stumping me

Post by ManRoaming »

Forbidden

You don't have permission to access /index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.0 (Linux/SUSE) Server at 192.168.1.14 Port 80

OK, maybe I come home from work too fried to see the answer to this.. Is there an easy button I can push?
Flash_
Posts: 441
Joined: Wed Jan 11, 2006 12:19 pm

Post by Flash_ »

Check /var/log/apache2/error.log for more info.

Also F5 (or CTRL+F5) to see if it's asking for any user/pass, and whether that's from Zoneminder's security, or a .htaccess or rule in apache's config.
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

Permissions

Post by ma77hias »

Did you check permissions on your web directory and your ZM directory ?

Verify that your apache user ist the owner/group of your web directories and has read/write permissions
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Also, make sure you do actually have php installed.
Phil
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

Web access

Post by ManRoaming »

I have PHP installed. I am looking through permissions, uh how do I check to see if the apache user is the owner/group of my web directories?
I have some directores owned by root-root and some owned by wwwrun-root. A little guidance is needed here because I will certainly F this up
:)
User avatar
ma77hias
Posts: 71
Joined: Wed Jul 07, 2004 3:18 pm

permissions

Post by ma77hias »

The command
ls -l
should give you directory listing with the owners

chown -R <user>:<group> FILE/DIRECTORY
use -R for recursive
This command changes owner and group of a file or directory

chgrp -R <group> FILE/DIRECTORY

just changes the group

chmod changes the read/write/execute permissions
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

still stuck

Post by ManRoaming »

I am still wrestling with this. Here is the error recorded in /var/log/apache2/error_log

[Wed Oct 11 18:34:23 2006] [error] [client 192.168.1.16] Symbolic link not allowed or link target not accessible: /srv/www/htdocs/index.php, referer: http://192.168.1.16/

I can see this file through conquerer so I know it exists. Anyone have an idea?
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You may need to change your directives in your httpd.conf (apache config file) to allow symlinks to be used.

ie.
<Directory /usr/local/httpd/htdocs>
Options Indexes FollowSymLinks
</Directory>
See apaches page at http://httpd.apache.org/docs/2.2/mod/co ... #directory for more info.

Regards,
Corey
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

fixed, yahoo!

Post by ManRoaming »

I was able to fix this tonight by deleting the index.php and creating a new link:
ln zm.php index.php

now I can see my cams on my network. Next will be to see them on the oter side of my NAT.
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

NAT works

Post by ManRoaming »

Mapped port 80 to my Zm server address (through linksys AP router) and was able to see my cams through the firewall at work.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

good glad your sorted mate
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
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

Web access begs for security

Post by ManRoaming »

How do you password this out to keep the gremlins off? (web access)
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

turn on auth in options
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
ManRoaming
Posts: 27
Joined: Fri Sep 08, 2006 7:15 pm

Got it

Post by ManRoaming »

Thanks!
But I RTFM after I made the last post, a little bass ackwards way to do things but it works fine.
Locked