SOLVED: Forbidden You don't have permission to access /zm on this server.

Forum for questions and support relating to the 1.29.x releases only.
Locked
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

SOLVED: Forbidden You don't have permission to access /zm on this server.

Post 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?
Last edited by neuronetv on Wed Nov 09, 2016 12:48 pm, edited 1 time in total.
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: Forbidden You don't have permission to access /zm on this server.

Post 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.
SteveGilvarry
Posts: 494
Joined: Sun Jun 29, 2014 1:12 pm
Location: Melbourne, AU

Re: Forbidden You don't have permission to access /zm on this server.

Post 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.
Production Zoneminder 1.37.x (Living dangerously)
Random Selection of Cameras (Dahua and Hikvision)
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: Forbidden You don't have permission to access /zm on this server.

Post 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
neuronetv
Posts: 86
Joined: Mon Dec 17, 2012 10:01 pm

Re: SOLVED: Forbidden You don't have permission to access /zm on this server.

Post 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.
User avatar
knight-of-ni
Posts: 2404
Joined: Thu Oct 18, 2007 1:55 pm
Location: Shiloh, IL

Re: SOLVED: Forbidden You don't have permission to access /zm on this server.

Post 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.
Visit my blog for ZoneMinder related projects using the Raspberry Pi, Orange Pi, Odroid, and the ESP8266
All of these can be found at https://zoneminder.blogspot.com/
Locked