Ad Widget

Collapse

Zabbix web interface/UI displays only text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acazan
    Junior Member
    • Jan 2016
    • 3

    #1

    Zabbix web interface/UI displays only text

    Hi there,

    Just installed Zabbix 2.4 with apache 2.4.6 on centos 7. after logging in to UI with admin



    I am able to see only text.
    php5_module is loaded in apache, so does not seem to be a php issue...

    Did anyone run into this issue before?

    thanks
  • ingus.vilnis
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2014
    • 908

    #2
    Hello and welcome to Zabbix forums!

    There is a bunch of PHP packages required so double check if you have them all.
    Code:
    [root@ingus]# yum list installed | grep php
    php.x86_64            5.3.3-46.el6_6    @updates
    php-bcmath.x86_64     5.3.3-46.el6_6    @updates
    php-cli.x86_64        5.3.3-46.el6_6    @updates
    php-common.x86_64     5.3.3-46.el6_6    @updates
    php-gd.x86_64         5.3.3-46.el6_6    @updates
    php-mbstring.x86_64   5.3.3-46.el6_6    @updates
    php-mysql.x86_64      5.3.3-46.el6_6    @updates
    php-pdo.x86_64        5.3.3-46.el6_6    @updates
    php-xml.x86_64        5.3.3-46.el6_6    @updates
    [root@ingus]#
    And if you install any additional, restart Apache to apply the changes.

    Best Regards,
    Ingus

    Comment

    • acazan
      Junior Member
      • Jan 2016
      • 3

      #3
      Thank you Ingus. I checked and I have all 9 packages installed...

      Do you have any other suggestions?

      Alex

      Comment

      • dthiele
        Junior Member
        • Jan 2016
        • 3

        #4
        Same issue here

        I too am having this issue. I just installed Zabbix on an Oracle Linux 6.7 Oracle VM. I am using postgresql for the database. I too also have all of those php packages installed already. I've restarted all of the services too.

        Any thoughts?

        Comment

        • ingus.vilnis
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Mar 2014
          • 908

          #5
          Hi Alex,

          Maybe try something from here
          http://stackoverflow.com/questions/3...-as-plain-text

          Hard to imagine what exactly are you seeing. It might help if you can add screenshot what you see in the browser.

          Best Regards,
          Ingus

          Comment

          • dthiele
            Junior Member
            • Jan 2016
            • 3

            #6
            I have attached a screenshot of what I am seeing. It looks like the PHP code is being loaded and interpreted fine. I validated that the php module is getting loaded by apache and that the .php files are being read correctly.
            Attached Files

            Comment

            • acazan
              Junior Member
              • Jan 2016
              • 3

              #7
              Same here. php info page displays correctly. php modules are loaded by apache but still [page shows as text.

              Comment

              • dthiele
                Junior Member
                • Jan 2016
                • 3

                #8
                Resolved

                I fixed this issue by doing a few things:

                1 - I moved the service to another server that wasn't already running an apache website. I am almost certain that the other site's custom config (Thanks Oracle) was messing this one up.

                2 - I found that some other files needed to be changed based off of reading through some other forums:
                Code:
                cp /etc/mime.types /etc/mime.types.bkup
                cp /etc/mime.types.rpmnew /etc/mime.types
                cp /etc/mailcap /etc/mailcap.bkup
                cp /etc/mailcap.rpmnew /etc/mailcap
                service httpd restart
                3 - I also add this line to /etc/httpd/conf.d/php.conf just below the text/html line. I don't think this is necessary anymore but it used to be back in like 2010.
                Code:
                AddType application/x-httpd-php .php
                I did all of this on last Friday so I might have missed something else I did. Let me know if this works.

                Comment

                • beattodeath
                  Junior Member
                  • Mar 2017
                  • 2

                  #9
                  Originally posted by dthiele
                  I fixed this issue by doing a few things:

                  1 - I moved the service to another server that wasn't already running an apache website. I am almost certain that the other site's custom config (Thanks Oracle) was messing this one up.

                  2 - I found that some other files needed to be changed based off of reading through some other forums:
                  Code:
                  cp /etc/mime.types /etc/mime.types.bkup
                  cp /etc/mime.types.rpmnew /etc/mime.types
                  cp /etc/mailcap /etc/mailcap.bkup
                  cp /etc/mailcap.rpmnew /etc/mailcap
                  service httpd restart
                  3 - I also add this line to /etc/httpd/conf.d/php.conf just below the text/html line. I don't think this is necessary anymore but it used to be back in like 2010.
                  Code:
                  AddType application/x-httpd-php .php
                  I did all of this on last Friday so I might have missed something else I did. Let me know if this works.

                  I follow these instructions but it didn't work..
                  any ideas?

                  Comment

                  • beattodeath
                    Junior Member
                    • Mar 2017
                    • 2

                    #10
                    Originally posted by beattodeath
                    I follow these instructions but it didn't work..
                    any ideas?
                    I've founded the solution and share with you.

                    Add 2 configurations as below in /etc/httpd/conf/httpd.conf


                    AddType application/x-httpd-php .php

                    <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                    SetHandler application/x-httpd-php
                    </FilesMatch>

                    Comment

                    Working...