Ad Widget

Collapse

New insatll ... web page not rendering

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mcdougak
    Junior Member
    • Oct 2013
    • 26

    #16
    Originally posted by steveboyson
    I had a look on the RH 6 packages. The only file they place there is "maintenance.inc.php" which is perfectly fine.

    Is your RH 6box somehow reconfigured to use SeLinux or AppArmor or any other security-hardening package?

    That would explain your probs. I just cannot imagine that the RH6 packages are broken.
    From sestatus:
    SELinux status: enabled
    SELinuxfs mount: /selinux
    Current mode: permissive
    Mode from config file: permissive
    Policy version: 24
    Policy from config file: targeted

    Comment

    • steveboyson
      Senior Member
      • Jul 2013
      • 582

      #17
      Oha. That explains a lot. Probably you need to teach selinux to allow you to start and run zabbix. Unfortunately I can't help you with that since I'm not using it.

      Probably aunt g00gle does know more about it?

      For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.


      (don't want to be offensive, it just creates shorter links)

      Comment

      • mcdougak
        Junior Member
        • Oct 2013
        • 26

        #18
        Originally posted by steveboyson
        Oha. That explains a lot. Probably you need to teach selinux to allow you to stat and run zabbix. Unfortunately I can' help you with that since I'm not using it.

        Probably aunt g00gle does know more about it?

        For all those people who find it more convenient to bother you with their question rather than to Google it for themselves.


        (don't want to be offensive, it just creates shorter links)
        Ok, will do some research on selinux or ask one of our linux guys here ...
        I'll report back what I find when I find something.

        It would seem like selinux being in 'permissive' mode would allow me to do what i need ....
        I just did an remove and reinstall and got the same outcome (checking for errors during install i may have missed).
        I do, however still receive the same permission error in the error_log for httpd ... so maybe selinux is messing with that somehow ...

        anyways, thanks all, i'll let you know what happens.

        Comment

        • EnigmA-X
          Senior Member
          Zabbix Certified Specialist
          • Oct 2010
          • 116

          #19
          Your selinux settings should be fine.

          As asked before, what is the output of:

          # ls -la /etc/zabbix

          Comment

          • Ace Cooper
            Junior Member
            • Jul 2017
            • 2

            #20
            Correct permissions

            Just created an account to give a solution to this old thread.
            I have been struggling with the same HTTP Error 500 after each Zabbix update:
            Code:
            PHP Fatal error:  require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php'
            1) Well, the solution is simple - the folder /etc/zabbix/web/ belongs to the group "apache".
            You can add the user, under which you run your Zabbix web-interface, to the group "apache" with:
            Code:
            usermod -a -G apache YOUR_ZABBIX_WEB_USER
            You will have to restart apache or httpd for the permissions to take effect.

            2) Alternatively - the folder /etc/zabbix/web/ has permissions 750 after each update.
            So you can give broader permissions 755:
            Code:
            chmod 755 /etc/zabbix/web/
            and your Zabbix web-interface will come back to life immediately.
            But you will have to fix folder permissions after each update, so the first method is preferable.
            Last edited by Ace Cooper; 24-07-2017, 15:31. Reason: readability & more details

            Comment

            Working...