Page 1 of 1
SOLVED: Forbidden You don't have permission to access /zm on this server.
Posted: Sat Oct 29, 2016 4:38 pm
by neuronetv
I've been running zoneminder-1.29.0-3.el6.x86_64 on centos 6 for ages, it's always been fine. Today when trying to get the web gui I suddenly get:
Code: Select all
Forbidden
You don't have permission to access /zm on this server.
Apache/2.2.15 (CentOS) Server at 172.16.1.180 Port 80
this is puzzling because the web gui has always worked in the past and nothing has been done on the server to change anything.What would cause this?
Re: Forbidden You don't have permission to access /zm on this server.
Posted: Sun Oct 30, 2016 7:20 pm
by neuronetv
bump.
anyone? please?
I've been trawling google and this forum for hours. I've got 'Require all Granted' in httpd.conf, I've even wiped and reimstalled zoneminder but I still get this error. Nothing works.
Re: Forbidden You don't have permission to access /zm on this server.
Posted: Sun Oct 30, 2016 9:07 pm
by SteveGilvarry
Nothing more useful in apache logs? Not likely to be anything zoneminder itself just how you have apache configured. Maybe knnniggett will wander in here as he is Centos user.
And backup everything in case fixing it breaks it more.
Re: Forbidden You don't have permission to access /zm on this server.
Posted: Mon Oct 31, 2016 8:31 am
by neuronetv
hi & thanks, no nothing in the logs. While trying to log in I've done tail -f on /var/log/messages, /var/log/httpd/error_log, /var/log/access_log - nothing happens, and the folder /var/log/zoneminder is empty. I don't know what other logs to try
Re: SOLVED: Forbidden You don't have permission to access /zm on this server.
Posted: Wed Nov 09, 2016 12:50 pm
by neuronetv
I feel such a fool. I was getting "Forbidden" because I was using http and not https (red faced). Hopefully this may help someone else who finds themselves locked out of the web gui.
Re: SOLVED: Forbidden You don't have permission to access /zm on this server.
Posted: Wed Nov 09, 2016 5:35 pm
by knight-of-ni
neuronetv wrote:I feel such a fool. I was getting "Forbidden" because I was using http and not https (red faced). Hopefully this may help someone else who finds themselves locked out of the web gui.
The zoneminder rpm for el6 in zmrepo, ships out of the box with an Apache HTTP->HTTPS redirect to avoid precisely this problem:
https://github.com/ZoneMinder/ZoneMinde ... conf.in#L7
Did you disable this on your system?
UPDATE: Now that I think about it, I don't remember exactly when I added the redirect. Since you stated you are running 1.29.0, that might predate the change I referenced. You can always add those lines of code manually to your apache config to avoid this issue again in the future.