You don't have permission to access /zabbix on this server

Alles, was den Apache betrifft, kann hier besprochen werden.

You don't have permission to access /zabbix on this server

Postby sphtd » 18. June 2018 08:31

Hello!

I downloaded zabbix on my server - FreeBSD 11.1-RELEASE-p10 - I'ts a firewall.
but when i go to: 10.10.10.1/zabbix i got a "You don't have permission to access /zabbix on this server."
Another file, for example index.html also shows this error

https://pastebin.com/gpYmMefd - httpd.conf

https://pastebin.com/kWFRke8A logs

Someone want to help me :oops: ?
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 18. June 2018 11:01

Do you know what you are doing???

You have this line in your httpd.conf:

<Directory "/usr/local/www/zabbix34">


1) Why did you put that into your httpd.conf?
2) Why do you enter 10.10.10.1/zabbix into your browser?

Very weird.

P.S.: Zabbix is NOT(!) a firewall.
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 19. June 2018 08:32

You have this line in your httpd.conf:

<Directory "/usr/local/www/zabbix34">


1) Why did you put that into your httpd.conf?
2) Why do you enter 10.10.10.1/zabbix into your browser?

Very weird.

P.S.: Zabbix is NOT(!) a firewall.

1) It was in tutorial of zabbix installation so i put in there
2) Beacouse its addres ip of my firewall ZyWALL and zabbix is a cataegory with files to installation

I didnt say taht zabbix is a firewall ;o! I know waht is this..
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 19. June 2018 10:18

sphtd wrote:1) It was in tutorial of zabbix installation so i put in there


But you have no idea what you are doing and that is quite useless.

sphtd wrote:I didnt say taht zabbix is a firewall


What??

sphtd wrote:I downloaded zabbix on my server - FreeBSD 11.1-RELEASE-p10 - I'ts a firewall.


Anyway, obviously you have no idea what you did there, according to your logs you entered http://10.10.10.1/zabbix.php instead of http://10.10.10.1/zabbix, but both does not make any sense with that configuration. You installed zabbix into a folder zabbix34, i cannot see any use in requesting http://10.10.10.1/zabbix

[Fri Jun 15 10:37:12.238494 2018] [authz_core:error] [pid 3635] [client 192.168.3.227:56117] AH01630: client denied by server configuration: /usr/local/www/apache24/data/zabbix.php
[Fri Jun 15 10:37:12.281881 2018] [authz_core:error] [pid 3635] [client 192.168.3.227:56117] AH01630: client denied by server configuration: /usr/local/www/apache24/data/favicon.ico, referer: http://10.10.10.1/zabbix.php


At next, your httpd.conf contains a wild mixture of "Allow From All" and "Require All Granted" (usually only one of these is supported), i also dont know why you entered a <Directory "/home"> clause into your httpd.conf, i also cannot find where you put zabbix to your DocumentRoot, neither any Alias instead, what would be necessary in order to request it from your Apache. Its very weird and it looks as if you simply copied some useless lines from a foreign configuration to your server without knowing anything about Apache configuration?!

Where did you put your zabbix installation (full path)?
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 20. June 2018 11:28

Actually, I have expressed myself badly. I was concerned that FreeBSD is on the Zyxell physical firewall machine. Yes u are right. I o have idea what im doing because I do not know about it (apache).

I made a dir "/temp"
,so i used "pkg install zabbix34-server blabla" , create a database and now i need configure httpd.conf but i have no idea how

But why another file, which I make shows me You dont have permissions, no matter which

https://pastebin.com/EarSgjKb
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 20. June 2018 21:02

sphtd wrote:and now i need configure httpd.conf but i have no idea how


Unfortunately, i cannot help you on that. I know how to configure Apache, but i dont know FreeBSB/Apache and I neither know Zabbix. As long as you cannot explain how to run Zabbix, i cannot tell you how to configure Apache.
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 21. June 2018 07:13

In documentation of installing zabbix, we can see taht we have to go:
http://<ip_or_name_server>/zabbix

After installation :/
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 21. June 2018 09:53

sphtd wrote:In documentation of installing zabbix, we can see taht we have to go:
http://<ip_or_name_server>/zabbix


Yes, of course, But that definately requires the proper installation of zabbix and configuration of Apache, which i both dont know. Your own httpd.conf is insufficient, why ever. I dont think you followed the instructions correctly or the instructions are wrong. Maybe there is a zabbix support forum or similar. This forum is not a zabbix forum.
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 21. June 2018 10:20

Yes i know it ;D But i think that problem lies with the Apache. Ok so i go again to zabbix irc :D
However, thanks for help <3 :oops:
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 21. June 2018 10:35

sphtd wrote:Yes i know it ;D But i think that problem lies with the Apache.


Yes and no. Its not Apache itself, your httpd.conf is "weird". You implemented some changes, but these dont make much sense. Which instructions did you follow?
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 21. June 2018 10:44

https://serveradmin.ru/ustanovka-zabbix-3-0-na-freebsd-10-3/

I think i need clear httpd
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 21. June 2018 13:27

I cannot read kyrril (russian letters), but i found a snippet what i expected in your httpd.conf, which you DID NOT apply:

Code: Select all
Alias /zabbix /usr/local/www/zabbix3


Thats exactly what i mentioned above where i spoke about DocumentRoot and/or ALIAS. This is the most important option, but you probably have to adapt it to your PC, as your Zabbix installation is NOT in /usr/local/www/zabbix3 but maybe in /usr/local/www/zabbix34. Therefore you MUST enter this line in httpd.conf:

Code: Select all
Alias /zabbix /usr/local/www/zabbix34


At next you have to find out, whether you can apply proper rights either with

Code: Select all
Require All Granted


or

Code: Select all
Allow From All


If nothing helps, try to use both (as shown on your installation site):

Code: Select all
<Directory "/usr/local/www/zabbix34">
  Options Indexes FollowSymLinks
  AllowOverride All
  Require all granted
  Allow from all
</Directory>


Finally restart Apache and try to enter http://10.10.10.1/zabbix

P.S.: Did you really follow ALL advices from that installation description? Did you execute all the MySQL commands in order to create a database for zabbix? Honestly, i doubt it and if you did not, you dont need to go any further, as it would fail.
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04

Re: You don't have permission to access /zabbix on this serv

Postby sphtd » 22. June 2018 07:28

I cannot read kyrril too. I used translate :p

Man! I love you <3 #nohomo ;). It works

Yes yes i executed all the MySQL commands.

Thanks!
sphtd
 
Posts: 7
Joined: 18. June 2018 08:19
XAMPP version: 7
Operating System: win7

Re: You don't have permission to access /zabbix on this serv

Postby Nobbie » 22. June 2018 11:32

Finally....
Nobbie
 
Posts: 10455
Joined: 09. March 2008 13:04


Return to Apache

Who is online

Users browsing this forum: No registered users and 1 guest