Ad Widget

Collapse

New insatll ... web page not rendering

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

    #1

    New insatll ... web page not rendering

    Hey all,

    So I just finished installing from scratch on a new server using the instructions provided here: https://www.zabbix.com/documentation..._from_packages

    But when i navigate to http://servername/zabbix I'm looking at a blank page. I know the web service is functioning correctly because when i go to just http://servername/ I can see the default apache page.

    Am I missing anything? I've restarted all services and modified the configs as necessary to point to the correct DB server. I'm not getting any errors on the screen, just a blank page ...

    Thanks in advance for your help!
    KM
  • EnigmA-X
    Senior Member
    Zabbix Certified Specialist
    • Oct 2010
    • 116

    #2
    Did you restart/reload apache?

    Please check if apache is working properly (check access and error logs), after that check that PHP is working properly (Google for php info)

    Comment

    • mcdougak
      Junior Member
      • Oct 2013
      • 26

      #3
      Yes, restarted the apache service ... looked at logs and found this ...


      [Thu Jan 16 11:55:48 2014] [error] [client 10.10.10.23] PHP Fatal error: require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear') in /usr/share/zabbix/include/classes/core/ZBase.php on line 276
      [Thu Jan 16 12:02:14 2014] [error] [client 10.10.10.23] PHP Warning: require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 276
      [Thu Jan 16 12:02:14 2014] [error] [client 10.10.10.23] PHP Fatal error: require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear') in /usr/share/zabbix/include/classes/core/ZBase.php on line 276

      Would seem like a permissions issue but I'm not sure where to go from here. Not really a linux guy. I had a test environment setup on Ubuntu and it worked perfectly but now that I've moved to RHEL6 I'm running into all kinds of errors.

      Comment

      • mcdougak
        Junior Member
        • Oct 2013
        • 26

        #4
        [Thu Jan 16 11:55:48 2014] [error] [client 10.10.10.23] PHP Warning: require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 276

        Comment

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

          #5
          Can you paste the output of:

          # ls -la /etc/zabbix/web/maintenance.inc.php

          Comment

          • mcdougak
            Junior Member
            • Oct 2013
            • 26

            #6
            ls: cannot access /etc/zabbix/web/maintenance.inc.php: Permission denied

            Comment

            • mcdougak
              Junior Member
              • Oct 2013
              • 26

              #7
              sorry that was with my reg user acct ...

              here is what i get with sudo ...
              -rw-r--r--. 1 root root 1036 Dec 10 09:45 /etc/zabbix/web/maintenance.inc.php

              Comment

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

                #8
                Please make sure that /etc/zabbix/web/ is accessible for the account running the apache server (normally httpd,apache or www-data)

                So also check permissions on the directories:

                /etc (should be fine)
                /etc/zabbix
                /etc/zabbix/web

                By the way, I'm utterly surprised about the lack of Filesystem Hierarchy Standard (FHS) compliance on this subject. These webfiles do not belong in /etc/ in the first place. I will check it out and will file a bug-report if this is really true...
                Last edited by EnigmA-X; 17-01-2014, 00:08.

                Comment

                • steveboyson
                  Senior Member
                  • Jul 2013
                  • 582

                  #9
                  Don't think that the default install will place the web frontend files into /etc/$WHATEVER.
                  It's most likely a "configure --sysconf-dir=..." with a malformed "--prefix=/" parameter. The default for --prefix is "/usr/local".

                  Comment

                  • mcdougak
                    Junior Member
                    • Oct 2013
                    • 26

                    #10
                    modified permissions and get the following in error_log for httpd
                    [Thu Jan 16 14:41:18 2014] [error] [client 10.10.10.23] PHP Warning: require_once(/etc/zabbix/web/maintenance.inc.php): failed to open stream: Permission denied in /usr/share/zabbix/include/classes/core/ZBase.php on line 276
                    [Thu Jan 16 14:41:18 2014] [error] [client 10.10.10.23] PHP Fatal error: require_once(): Failed opening required '/etc/zabbix/web/maintenance.inc.php' (include_path='.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear') in /usr/share/zabbix/include/classes/core/ZBase.php on line 276


                    here is the permissions on the file:
                    -rwxr-xr-x. 1 apache apache 1036 Dec 10 09:45 /etc/zabbix/web/maintenance.inc.php

                    Originally posted by steveboyson
                    Don't think that the default install will place the web frontend files into /etc/$WHATEVER.
                    It's most likely a "configure --sysconf-dir=..." with a malformed "--prefix=/" parameter. The default for --prefix is "/usr/local".
                    What do it need to do then? Do I need some kind of pointer or something in my /etc/httpd directory?

                    Sorry guys for all the dumb questions ... still learning linux and how it works

                    Comment

                    • steveboyson
                      Senior Member
                      • Jul 2013
                      • 582

                      #11
                      I would suggest that you do yourself a favour and grab the (hopefully) existing packages for $YOUR_DISTRO.

                      Otherwise: if you placed the web frontend files under /etc then an
                      Alias /zabbix "/etc/zabbix/web"
                      would at least be needed. And then fix the "Directory /usr/share/zabbix" statements to the location you've been chosen.

                      But better have your web frontend files under /usr/share/zabbix as it is the default.

                      Comment

                      • steveboyson
                        Senior Member
                        • Jul 2013
                        • 582

                        #12
                        By the way: the link you mentioned does nothing say about self-compiling zabbix.
                        What distribution are you using? Could it be that these packages are really BROKEN?

                        Comment

                        • mcdougak
                          Junior Member
                          • Oct 2013
                          • 26

                          #13
                          Originally posted by steveboyson
                          By the way: the link you mentioned does nothing say about self-compiling zabbix.
                          What distribution are you using? Could it be that these packages are really BROKEN?
                          Correct I did not compile I installed from the RPM as suggested for RHEL6 (that's what I'm running it on).

                          So I would ** assume ** (could totally be wrong) that everything would be already configured to be put in the correct place ?

                          Comment

                          • steveboyson
                            Senior Member
                            • Jul 2013
                            • 582

                            #14
                            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.

                            Comment

                            • steveboyson
                              Senior Member
                              • Jul 2013
                              • 582

                              #15
                              Addendum: the apache config provided by the RH6 RPM seems to be OK for me. It's pointing to /usr/share/zabbix as expected.


                              I really don't know what's wrong with your install.

                              Comment

                              Working...