Ad Widget

Collapse

Zabbix on Fedora PHP/Apache help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sipple31
    Junior Member
    • Feb 2013
    • 1

    #1

    Zabbix on Fedora PHP/Apache help

    Hello - I have a Fedora VM that I run RANCID on for my Juniper backups. It runs mysql & apache, so I decided to try Zabbix and fit it into the same setup. As far as I can tell, zabbix-server starts up fine. I have my Zabbix directory under /var/www/html/zabbix

    When I go to hit the web interface for initial configuration... all I get is the php code. Something isn't right. Can anyone point me in the right direction?

    thanks!
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    Do you have PHP installed on your server? Is Apache configured to load its PHP module?

    Comment

    • Tux
      Junior Member
      • Jan 2010
      • 15

      #3
      hi,

      for testing create a index.php with the content:

      <?php phpinfo(); ?>

      and browse to it. if u see nothing, then u need:

      * php5* (yum search php and/or install this)
      * apache2-mod_php* (yum search apache2-mod_php* and/or install this)

      After that, u must configure Apache to use it (depend on the distro). On Rhel/Sles:

      $:>vi /etc/sysconfig/apache2

      Add php (maybe php53, if u installed php53 and not php5) to the other moduls in the list:

      APACHE_MODULES="php5"

      and create a included extra file (like php.conf) or add this to httpd.conf:

      <IfModule mod_php5.c>
      <FilesMatch "\.ph(p[345]?|tml)$">
      SetHandler application/x-httpd-php
      </FilesMatch>
      <FilesMatch "\.php[345]?s$">
      SetHandler application/x-httpd-php-source
      </FilesMatch>
      DirectoryIndex index.php4
      DirectoryIndex index.php5
      DirectoryIndex index.php
      </IfModule>
      Last edited by Tux; 22-02-2013, 17:31.

      Comment

      Working...