Page 1 of 1
Web access stumping me
Posted: Thu Sep 28, 2006 11:04 pm
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?
Posted: Fri Sep 29, 2006 5:55 am
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.
Permissions
Posted: Fri Sep 29, 2006 8:47 am
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
Posted: Fri Sep 29, 2006 10:14 am
by zoneminder
Also, make sure you do actually have php installed.
Web access
Posted: Fri Sep 29, 2006 8:31 pm
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
:)
permissions
Posted: Mon Oct 02, 2006 10:03 am
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
still stuck
Posted: Wed Oct 11, 2006 10:51 pm
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?
Posted: Thu Oct 12, 2006 12:10 am
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
fixed, yahoo!
Posted: Thu Oct 12, 2006 12:58 am
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.
NAT works
Posted: Fri Oct 13, 2006 12:41 am
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.
Posted: Fri Oct 13, 2006 12:44 am
by jameswilson
good glad your sorted mate
Web access begs for security
Posted: Fri Oct 13, 2006 12:49 am
by ManRoaming
How do you password this out to keep the gremlins off? (web access)
Posted: Fri Oct 13, 2006 1:02 am
by jameswilson
turn on auth in options
Got it
Posted: Fri Oct 13, 2006 3:10 am
by ManRoaming
Thanks!
But I RTFM after I made the last post, a little bass ackwards way to do things but it works fine.