Page 1 of 1
[1.27.0] You don't have permission to access /zoneminder ...
Posted: Sat Jun 28, 2014 3:16 pm
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:
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?
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Mon Jun 30, 2014 5:43 pm
by linuxsense
Is this Apache 2.4? Can you share your apache config for the ZM site?
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Mon Jun 30, 2014 5:51 pm
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
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Mon Jun 30, 2014 5:55 pm
by linuxsense
That should just be a warning. What issue do you have exactly?
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Mon Jun 30, 2014 6:06 pm
by R2D2
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Mon Jun 30, 2014 6:17 pm
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
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 5:14 pm
by R2D2
This "
good example" doesn't work.
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 5:23 pm
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.
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 5:38 pm
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 ~ #
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 5:47 pm
by linuxsense
Try:
Code: Select all
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
and
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 5:56 pm
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
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 6:03 pm
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.
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 6:12 pm
by R2D2
Where can i find the 1.27.1?
Here is only 1.27.0 online:
-->
http://www.zoneminder.com/downloads
Re: [1.27.0] You don't have permission to access /zoneminder
Posted: Tue Jul 01, 2014 6:44 pm
by linuxsense