Ad Widget

Collapse

Zabbix 1.0 and Fedora Core 4 (PHP5) ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gmuller
    Junior Member
    • Aug 2005
    • 4

    #1

    Zabbix 1.0 and Fedora Core 4 (PHP5) ?

    Hi,

    I have been using zabbix with FC3 and RH 8 since several months. I just tried to implement zabbix on a Fedore 4 by using the following packages :
    zabbix-1.0-2.rhfc4.at
    zabbix-phpfrontend-1.0-2.rhfc4.at
    zabbix-agent-1.0-2.rhfc4.at

    The installation went well, but I cannot login with the admin user.
    - No error message in the httpd log
    - No error message in the php window
    - data well uploaded in the mysql database and reachable.

    My host has php5 implemented
    # rpm -qa | grep php
    php-odbc-5.0.4-10.4
    php-ldap-5.0.4-10.4
    php-5.0.4-10.4
    php-pgsql-5.0.4-10.4
    zabbix-phpfrontend-1.0-2.rhfc4.at
    php-pear-5.0.4-10.4
    php-mysql-5.0.4-10.4

    Can you please let me know if anyone of you managed to implement zabbix on a Fedora 4 with php5 ?
    Is there any way to have it working or should I consider moving back to a Fedora 3 with a php4 environment.

    Thanks in advance for your feedback.

    Guy
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    I know this is going to be one of those 'DUH' questions, but are you sure you updated the configuration in include/db_inc.php?

    Normally, when you get this it indicates that you are unable to communicate with the database.
    Unofficial Zabbix Developer

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Perhaphs user "Admin" (not "admin") will make the difference.
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • gmuller
        Junior Member
        • Aug 2005
        • 4

        #4
        Thank you for your reply and sorry about the typos.
        I used Admin and not admin as indicated in the manual and other posts

        The Admin account is created in the db :
        Admin Zabbix Administrator d41d8cd98f00b204e9800998ecf8427e

        In the "db.inc.php" file I have :
        // $DB_TYPE ="POSTGRESQL";
        $DB_TYPE ="MYSQL";
        $DB_SERVER ="localhost";
        $DB_DATABASE ="zabbix";
        $DB_USER ="zabbix";
        $DB_PASSWORD ="zabbixpassword";


        The user/password is the good one :
        # mysql -u zabbix zabbix -p
        Enter password:
        Reading table information for completion of table and column names
        You can turn off this feature to get a quicker startup with -A

        Welcome to the MySQL monitor. Commands end with ; or \g.
        Your MySQL connection id is 22 to server version: 4.1.12

        Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

        mysql> show tables
        -> ;
        +------------------+
        | Tables_in_zabbix |
        +------------------+
        | actions |
        | alarms |
        | alerts |
        | config |
        | functions |
        | graphs |
        | graphs_items |
        | groups |

        Enabling the display error mode in php did not provide me more information.

        Do you know if there is any way to get more traces (debug mode) ?
        Can you please confirm me that zabbix should work ok with php5 ?

        Thanks again for your time,

        Guy

        Comment

        • Alexei
          Founder, CEO
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2004
          • 5654

          #5
          I remeber about several issues with ZABBIX v1.0 and PHP5. ZABBIX 1.0 does not support PHP5.
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • gmuller
            Junior Member
            • Aug 2005
            • 4

            #6
            Hi,

            Thank you for your feedback, can you please let me know if php5 will be supported by the current alpha release of zabbix ?

            Thanks

            Guy

            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            Here is a status of my tests :

            I just tried XAMPP in php 4.4 mode and it worked.
            Then I switched XAMPP in php5 mode and it worked too.

            Well with these good results, I replaced the system php.ini file with XAMPP php.ini file and it woked there too.

            My next step will be to check the php.ini setting which generated the issue.

            FYI the differences are :
            # diff php.ini php.ini_ori | grep -v '[<>] ;' | grep -v '[<>] *$'
            3,13d2
            15c4
            ---
            56a46
            58,60c48,122
            ---
            69a132,134
            > zend.ze1_compatibility_mode = Off
            70a136,140
            77c147
            < precision = 12
            ---
            > precision = 14
            80c150
            < y2k_compliance = Off
            ---
            > y2k_compliance = On
            89c159
            < output_buffering = Off
            ---
            > output_buffering = 4096
            92,104c162,173
            < output_handler =
            < unserialize_callback_func=
            ---
            109,111c178,183
            ---
            113a186,190
            120a198,211
            > unserialize_callback_func=
            > serialize_precision = 100
            129a221
            131a224
            139c232
            < safe_mode_gid = On
            ---
            > safe_mode_gid = Off
            145c238
            < safe_mode_include_dir =
            ---
            > safe_mode_include_dir =
            151,156d243
            171a259,264
            173c266
            ---
            176a270,274
            > disable_classes =
            178,184c276,282
            < highlight.string = #CC0000
            < highlight.comment = #FF9900
            < highlight.keyword = #006600
            < highlight.bg = #FFFFFF
            < highlight.default = #0000CC
            < highlight.html = #000000
            ---
            201a300
            > max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
            211c310
            ---
            219a319,321
            230a333,336
            239c345
            ---
            241c347
            < error_reporting = E_ALL & ~E_NOTICE
            ---
            > error_reporting = E_ALL
            248c354,355
            < display_errors = On
            ---
            > display_errors = Off
            258c365
            < log_errors = Off
            ---
            > log_errors = On
            268c375
            ---
            272a380,384
            > report_memleaks = On
            276a389
            278c391,401
            ---
            291,293d413
            < warn_plus_overloading = Off
            302c422
            ---
            306c426
            ---
            325c445,450
            < register_globals = On
            ---
            > register_globals = Off
            > register_long_arrays = Off
            335,337d459
            < gpc_order = "GPC"
            342c464
            < magic_quotes_gpc = On
            ---
            > magic_quotes_gpc = Off
            345c467
            < magic_quotes_runtime = Off
            ---
            > magic_quotes_runtime = Off
            364a487
            369c492
            ---
            387,388c510
            ---
            > extension_dir = "/usr/lib/php/modules"
            401c523,527
            ---
            413a540,547
            438a573,585
            > default_socket_timeout = 60
            449,453c596
            ---
            457c600
            ---
            462,531c605,608
            < extension="zip.so"
            < extension="sqlite.so"
            ---
            533d609
            547a624
            > smtp_port = 25
            550c627
            < sendmail_from = [email protected]
            ---
            553c630
            ---
            > sendmail_path = /usr/sbin/sendmail -t -i
            555,559c632,635
            < [Java]
            ---
            579c655
            < odbc.max_links = -1
            ---
            > odbc.max_links = -1
            583c659
            < odbc.defaultlrl = 4096
            ---
            > odbc.defaultlrl = 4096
            588c664
            < odbc.defaultbinmode = 1
            ---
            > odbc.defaultbinmode = 1
            618c694
            ---
            622a699,736
            > mysql.connect_timeout = 60
            > mysql.trace_mode = Off
            > [MySQLI]
            > mysqli.max_links = -1
            > mysqli.default_port = 3306
            > mysqli.default_socket =
            > mysqli.default_host =
            > mysqli.default_user =
            > mysqli.default_password =
            > mysqli.reconnect = Off
            637,638c751,753
            < pgsql.auto_reset_persistent = Off
            ---
            > pgsql.auto_reset_persistent = Off
            646a762
            693a810,819
            > [dbx]
            > dbx.colnames_case = "lowercase"
            743c869
            ---
            745c871,894
            < session.save_path = /tmp
            ---
            > session.save_path = "/var/lib/php/session"
            749a899,901
            769c921
            ---
            770a923,926
            771a928
            > session.gc_divisor = 1000
            776a934,950
            > session.bug_compat_42 = 0
            > session.bug_compat_warn = 1
            792c966,967
            ---
            798,800c973,1001
            < session.use_trans_sid = 1
            ---
            > session.use_trans_sid = 0
            > session.hash_function = 0
            > session.hash_bits_per_character = 5
            821a1023,1028
            830a1038,1042
            833a1046,1048
            892,895d1106
            < [Sockets]
            < sockets.use_system_read = On
            898c1109
            ---
            908,910d1118
            < [Printer]
            911a1120,1122
            923a1135,1141
            925c1143
            ---
            934,935c1152,1158
            ---
            940c1163
            ---
            952,955c1175,1204
            < [Crack]
            < crack.default_dictionary = "c:\php4\lib\cracklib_dict"
            ---
            > [exif]
            > [Tidy]
            > tidy.clean_output = Off
            > [soap]
            > soap.wsdl_cache_enabled=1
            > soap.wsdl_cache_dir="/tmp"
            > soap.wsdl_cache_ttl=86400

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              Yes, the latest ZABBIX 1.1 alphas do support PHP5.
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              • gmuller
                Junior Member
                • Aug 2005
                • 4

                #8
                Excellent, thank you.

                Have a great one,

                Guy

                Comment

                • tbbost
                  Junior Member
                  • Sep 2005
                  • 1

                  #9
                  I just upgraded my fedora to core 4 which has PHP 5.
                  Try putting the following code in your config.inc.php and this should help.

                  if (!isset($HTTP_POST_VARS) && isset($_POST))
                  {
                  $HTTP_POST_VARS = $_POST;
                  $HTTP_GET_VARS = $_GET;
                  $HTTP_SERVER_VARS = $_SERVER;
                  $HTTP_COOKIE_VARS = $_COOKIE;
                  $HTTP_ENV_VARS = $_ENV;
                  $HTTP_POST_FILES = $_FILES;
                  }

                  Comment

                  • bsriphet
                    Junior Member
                    • Dec 2005
                    • 1

                    #10
                    Nice, that simple addition does take care of PHP5 compatibility.
                    Thank you!

                    /b

                    Comment

                    Working...