Ad Widget

Collapse

PHP option "mbstring.func_overload"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WSP-Computer
    Junior Member
    • Aug 2017
    • 3

    #1

    PHP option "mbstring.func_overload"

    Hi All,

    just installed zabbix 3.4 configured in best matter.... But I can't remove the Error: PHP option "mbstring.func_overload" must be disabled.

    I have edited php.ini as described.

    Restart Server with init 6

    System: Ubuntu 16.04.2, installed with repo with actual get-update..

    Maybe any help outside?

    Thx,

    Wolfgang
  • allexpetrov
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2017
    • 361

    #2
    Hi Wolfgang!
    Welcome to the Zabbix Community

    Check please if you have a symlink in /etc/apache2/conf-enabled/ name zabbix.conf which is pointed to /etc/zabbix/apache.conf ?

    It should override the default configuration of your php.ini file, otherwise it seems like in your php.ini file you have enabled ;mbstring.func_overload = function.

    Regards,
    Alex!

    Comment

    • WSP-Computer
      Junior Member
      • Aug 2017
      • 3

      #3
      Hi Alex,

      I have check it but it seems OK:

      /etc/php/7.0/apache2/php.ini
      ; overload(replace) single byte functions by mbstring functions.
      ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
      ; etc. Possible values are 0,1,2,4 or combination of them.
      ; For example, 7 for overload everything.
      ; 0: No overload
      ; 1: Overload mail() function
      ; 2: Overload str*() functions
      ; 4: Overload ereg*() functions
      ; http://php.net/mbstring.func-overload
      ;mbstring.func_overload = 0

      ; enable strict encoding detection.
      ; Default: Off

      zabbix.conf:

      <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
      </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
      </IfModule>
      </Directory>

      can u help?

      Comment

      • allexpetrov
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2017
        • 361

        #4
        First thing in zabbix.conf - uncomment the php_value date.timezone Europe/Riga and second - check if you have the file zabbix.conf in /etc/apache2/conf-enabled/ , which is symlinked to /etc/zabbix/apache.conf. You can check it with readlink command:
        Code:
        readlink -f /etc/apache2/conf-enabled/zabbix.conf
        .

        One more thing, errors during the frontend installation wizard?

        Regards,
        Alex!

        Comment

        • WSP-Computer
          Junior Member
          • Aug 2017
          • 3

          #5
          Hi,

          I uncomment lines... But no change.

          Symlink:

          root@ubuntu-zabbix:/etc/apache2/conf-enabled# readlink -f /etc/apache2/conf-enabled/zabbix.conf
          /etc/zabbix/apache.conf
          root@ubuntu-zabbix:/etc/apache2/conf-enabled#

          Seems ok....

          There are no failures through Setup...

          Did u have any other idea?

          Thx,

          Wolfgang

          Comment

          • allexpetrov
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • May 2017
            • 361

            #6
            Hi,
            So you are getting this error in Dashboard ? Could you please post a picture here?

            I've jsut installed the fresh 3.4.1 with mysql and frontend on 16.04.3 - everything is just fine. You are installing it on fresh ubuntu or it was used by any other web-app before ?

            Regards,
            Alex!

            Comment

            Working...