Ad Widget

Collapse

Zabbix setup

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dougskis
    Junior Member
    • Sep 2017
    • 7

    #1

    Zabbix setup

    Hi
    I am trying to teach myself how to use Zabbix, I volunteer with a Computers for School organization and I did work for a WISP that used Zabbix before they closed the office I was in.
    I have having problems getting Zabbix setup, when I access web interface I am getting errors. I have modified /etc/zabbix/apache.conf to the setting it should be, restarted apache service and also restarted computer with no change. I also tried commenting out all the deny all.
    Not sure what I am missing and not able to find a solution to my problem.

    Thank you for any help
    Doug


    Minimum required size of PHP post is 16M (configuration option "post_max_size").
    Minimum required limit on execution time of PHP scripts is 300 (configuration option "max_execution_time").
    Minimum required limit on input parse time for PHP scripts is 300 (configuration option "max_input_time").
    Time zone for PHP is not set (configuration parameter "date.timezone").
    At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.
    PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
    PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
    PHP gd extension missing (PHP configuration parameter --with-gd).
    PHP gd PNG image support missing.
    PHP gd JPEG image support missing.
    PHP gd FreeType support missing.
    PHP xmlwriter extension missing.
    PHP xmlreader extension missing.

    PHP version 7.0.22-0ubuntu0.16.04.1 5.4.0 OK
    PHP option "memory_limit" 128M 128M OK
    PHP option "post_max_size" 8M 16M Fail
    PHP option "upload_max_filesize" 2M 2M OK
    PHP option "max_execution_time" 30 300 Fail
    PHP option "max_input_time" 60 300 Fail
    PHP option "date.timezone" unknown Fail
    PHP databases support off Fail
    PHP bcmath off Fail
    PHP mbstring off Fail
    PHP sockets on OK
    PHP gd unknown 2.0 Fail
    PHP gd PNG support off Fail
    PHP gd JPEG support off Fail
    PHP gd FreeType support off Fail
    PHP libxml 2.9.3 2.6.15 OK
    PHP xmlwriter off Fail
    PHP xmlreader off Fail
    PHP LDAP off Warning
    PHP ctype on OK
    PHP session on OK
    PHP option "session.auto_start" off off OK
    PHP gettext on OK
    PHP option "arg_separator.output" & & OK



    cfs@zabbix:/etc/zabbix$ cat apache.conf
    # Define /zabbix alias, this is the default
    <IfModule mod_alias.c>
    Alias /zabbix /usr/share/zabbix
    </IfModule>

    <Directory "/usr/share/zabbix">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all

    <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/Riga
    php_value date.timezone America/Chicago
    </IfModule>
    <IfModule mod_php7.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/Riga
    php_value date.timezone America/Chicago
    </IfModule>
    </Directory>

    <Directory "/usr/share/zabbix/conf">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/app">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/include">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>

    <Directory "/usr/share/zabbix/local">
    Order deny,allow
    Deny from all
    <files *.php>
    Order deny,allow
    Deny from all
    </files>
    </Directory>
    cfs@zabbix:/etc/zabbix$
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi Dougskis,
    I think that you've messed up with some settings , but because your message is very messy - I actually can't read it. Respect others and separate it somehow with [CODE] brackets.

    If I understand correctly, then the error is:

    Code:
    Minimum required size of PHP post is 16M (configuration option "post_max_size").
    Minimum required limit on execution time of PHP scripts is 300 (configuration option "max_execution_time").
    Minimum required limit on input parse time for PHP scripts is 300 (configuration option "max_input_time").
    Time zone for PHP is not set (configuration parameter "date.timezone").
    At least one of MySQL, PostgreSQL, Oracle, SQLite3 or IBM DB2 should be supported.
    PHP bcmath extension missing (PHP configuration parameter --enable-bcmath).
    PHP mbstring extension missing (PHP configuration parameter --enable-mbstring).
    PHP gd extension missing (PHP configuration parameter --with-gd).
    PHP gd PNG image support missing.
    PHP gd JPEG image support missing.
    PHP gd FreeType support missing.
    PHP xmlwriter extension missing.
    PHP xmlreader extension missing.
    You need to install the php components for your PHP engine. Install them according to this manual ( https://www.zabbix.com/documentation...ments#frontend ) and enable the zabbix.conf file (apache.conf) file, but leave it on defaults please and just change the time zone

    Regards,
    Alex!

    Comment

    • Dougskis
      Junior Member
      • Sep 2017
      • 7

      #3
      I will check out link and double check my setup. Will update post with what I find.

      Thank you for your assistance.
      Doug

      This is how it is set below, time zone is set for America/Chicago.


      cfs@zabbix:/etc/zabbix$ cat apache.conf
      # Define /zabbix alias, this is the default
      <IfModule mod_alias.c>
      Alias /zabbix /usr/share/zabbix
      </IfModule>

      <Directory "/usr/share/zabbix">
      Options FollowSymLinks
      AllowOverride None
      Order allow,deny
      Allow from all

      <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/Riga
      php_value date.timezone America/Chicago

      Comment

      Working...