Ad Widget

Collapse

403 Forbidden

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BlackListMe
    Junior Member
    • Feb 2017
    • 2

    #1

    403 Forbidden

    Hi,

    could please somebody help me with webinterface of zabbix. I´m always receiving 403 error regardless what I´m adjusting in the config files.

    Using centOS7 and followed this description:



    Folderpermissions:

    /usr/share/zabbix
    Code:
    drwxr-xr-x.  13 apache apache  4096 23. Jan 18:49 zabbix
    /etc/httpd/conf.d/zabbix.conf
    Code:
    -rwxr-xr-x. 1 apache apache  831 10. Feb 17:49 zabbix.conf
    content:
    Code:
    Alias /zabbix /usr/share/zabbix
    
    <Directory "/usr/share/zabbix">
        Options FollowSymLinks
        AllowOverride None
        Require all granted
    
        <IfModule mod_php5.c>
            php_value max_execution_time 300
            php_value memory_limit 128M
            php_value post_max_size 16M
            php_value upload_max_filesize 2M
            php_value max_input_time 300
            php_value always_populate_raw_post_data -1
            php_value date.timezone Europe/Berlin
        </IfModule>
    </Directory>
    
    <Directory "/usr/share/zabbix/conf">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/app">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/include">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/local">
        Require all denied
    </Directory>
    Other webserver are running fine on the same machine


    Does somebody has any idea why i get this 403 errer?
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by BlackListMe
    Hi,

    could please somebody help me with webinterface of zabbix. I´m always receiving 403 error regardless what I´m adjusting in the config files.

    Using centOS7 and followed this description:



    Folderpermissions:

    /usr/share/zabbix
    Code:
    drwxr-xr-x.  13 apache apache  4096 23. Jan 18:49 zabbix
    /etc/httpd/conf.d/zabbix.conf
    Code:
    -rwxr-xr-x. 1 apache apache  831 10. Feb 17:49 zabbix.conf
    content:
    Code:
    Alias /zabbix /usr/share/zabbix
    
    <Directory "/usr/share/zabbix">
        Options FollowSymLinks
        AllowOverride None
        Require all granted
    
        <IfModule mod_php5.c>
            php_value max_execution_time 300
            php_value memory_limit 128M
            php_value post_max_size 16M
            php_value upload_max_filesize 2M
            php_value max_input_time 300
            php_value always_populate_raw_post_data -1
            php_value date.timezone Europe/Berlin
        </IfModule>
    </Directory>
    
    <Directory "/usr/share/zabbix/conf">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/app">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/include">
        Require all denied
    </Directory>
    
    <Directory "/usr/share/zabbix/local">
        Require all denied
    </Directory>
    Other webserver are running fine on the same machine


    Does somebody has any idea why i get this 403 errer?

    i can see in my server :
    Code:
    [root@zabbix:~:]ll /usr/share/ | grep zab
    drwxr-xr-x.  13 root root  4096 Dec 25 09:08 zabbix
    
    [root@zabbix:~:]ll /etc/httpd/conf.d/zabbix.conf
    -rw-r--r-- 1 root root 1142 Dec 25 09:25 /etc/httpd/conf.d/zabbix.conf
    run this command :
    chmod 755 /usr/share/zabbix
    chown root:root /usr/share/zabbix

    chmod 644 /etc/httpd/conf.d/zabbix.conf
    chown root:root /etc/httpd/conf.d/zabbix.conf

    and add logs from /var/log/http/error_log
    and zabbix_server.log

    Comment

    • BlackListMe
      Junior Member
      • Feb 2017
      • 2

      #3
      Hi and thanks. Changed the permissions as you have suggested doesn´t solved the problem.

      Here the output of /var/log/http/error_log | grep zabbix

      Code:
      [Mon Feb 13 19:40:26.621720 2017] [autoindex:error] [pid 3461] [client 192.168.178.61:52195] AH01276: Cannot serve directory /usr/share/zabbix/: No matching DirectoryIndex (index.html) found, and server-generated directory index forbidden by Options directive
      [Mon Feb 13 19:42:54.393723 2017] [access_compat:error] [pid 3601] [client 192.168.178.61:52205] AH01797: client denied by server configuration: /usr/share/zabbix/
      [AH01267]
      /usr/share/zabbix includes a index.php
      [AH01797]
      client acces is configured in /etc/zabbix/zabbix_agent.conf

      Output of /var/log/zabbix/zabbix_server.log
      Code:
       3492:20170213:195823.797 cannot send list of active checks to "192.168.178.202": host [fildercloud] not found
      Total damage?

      Comment

      Working...