[1.27.0] You don't have permission to access /zoneminder ...

Forum for questions and support relating to the 1.27.x releases only.
Locked
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

[1.27.0] You don't have permission to access /zoneminder ...

Post by R2D2 »

Hi,

after a long long time i've tried to install on a gentoo Linux.

So far, so good - but if i want to Login via Webinterface, the Browser says:

Image

I found this in the logfiles:

/log/apache2/error_log

Code: Select all

Sat Jun 28 16:59:59 2014] [error] [client 192.168.177.21] client denied by server configuration: /usr/lib64/apache2/%ZM_WEBDIR%
/log/apache2/access_log

Code: Select all

192.168.177.21 - - [28/Jun/2014:16:47:38 +0200] "GET /zoneminder HTTP/1.0" 404 266
192.168.177.21 - - [28/Jun/2014:16:47:44 +0200] "GET /zoneminder HTTP/1.0" 404 266
192.168.177.21 - - [28/Jun/2014:16:48:23 +0200] "GET /zoneminder HTTP/1.0" 403 270
192.168.177.21 - - [28/Jun/2014:16:59:59 +0200] "GET /zoneminder HTTP/1.0" 403 270
192.168.177.21 - - [28/Jun/2014:17:08:42 +0200] "GET /zoneminder HTTP/1.0" 403 270
192.168.177.21 - - [28/Jun/2014:17:08:42 +0200] "GET /favicon.ico HTTP/1.0" 404 267
192.168.177.21 - - [28/Jun/2014:17:08:42 +0200] "GET /favicon.ico HTTP/1.0" 404 267
192.168.177.21 - - [28/Jun/2014:17:08:42 +0200] "GET /favicon.ico HTTP/1.0" 404 267
Maybe someone can explain me, what i've forgot, or did wrong? :)
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

Is this Apache 2.4? Can you share your apache config for the ZM site?
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

The Problem is solved, there was an incorrect entry in "/etc/apache2/modules.d/10_zoneminder.conf". ;


But now there is an other Problem.

On each zm Site i see this issue:

Code: Select all

Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /usr/share/zoneminder/www/includes/database.php on line 32
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

That should just be a warning. What issue do you have exactly?
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

Image
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

That shouldn't cause problems,its just a warning. You can edit the php.ini to not show warnings. This is a good example: http://www.zootemplate.com/blog/how-to- ... hpini-file
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

This "good example" doesn't work. :(
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

Did you restart Apache after the changes? Which php.ini file did you modify? You might have several on the system, one for Apache and one for CLI.
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

linuxsense wrote:Did you restart Apache after the changes? ...
Yes, of course.
linuxsense wrote:[...] Which php.ini file did you modify? You might have several on the system, one for Apache and one for CLI.
I changed all i found on my System:

Code: Select all

server01 ~ # locate /etc/*/php.ini
/etc/php/apache2-php5.3/php.ini
/etc/php/apache2-php5.5/php.ini
/etc/php/cgi-php5.3/php.ini
/etc/php/cgi-php5.5/php.ini
/etc/php/cli-php5.3/php.ini
/etc/php/cli-php5.5/php.ini
server01 ~ #

Code: Select all

server01 ~ # grep -r "^error_reporting" /etc/php/*
/etc/php/apache2-php5.3/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
/etc/php/apache2-php5.5/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
/etc/php/cgi-php5.3/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
/etc/php/cgi-php5.5/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
/etc/php/cli-php5.3/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
/etc/php/cli-php5.5/php.ini:error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
server01 ~ #
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

Try:

Code: Select all

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
and

Code: Select all

display_errors = Off
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

I think, disabling the error reporting, is not really a good way to fix Errors!

Here it is fixed in the right way:

--> https://github.com/ZoneMinder/ZoneMinde ... tabase.php
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

No, its not a good way to fix errors but its not unusual to disable it in a production system especially if the only 'errors' you are getting are just warnings. If you are still on 1.27 you should consider moving to 1.27.1 as the current code is excellent.
User avatar
R2D2
Posts: 170
Joined: Tue Dec 27, 2005 5:02 pm
Location: Stuttgart, Germany

Re: [1.27.0] You don't have permission to access /zoneminder

Post by R2D2 »

Where can i find the 1.27.1?

Here is only 1.27.0 online:

--> http://www.zoneminder.com/downloads
linuxsense
Posts: 374
Joined: Wed Nov 07, 2007 1:59 am
Location: Huntington Beach, California
Contact:

Re: [1.27.0] You don't have permission to access /zoneminder

Post by linuxsense »

Locked