Ad Widget

Collapse

Call to undefined function: mysql_pconnect()

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • avenueb
    Junior Member
    • Feb 2005
    • 12

    #1

    Call to undefined function: mysql_pconnect()

    Hi all, zabbix newbie here

    RH9.0, Mysql 4.1

    I followed the install instruction to a T. The only thing I did not do is edit the /etc/inetd.conf file as RH does not have that.

    When accessing the zabbix html page for the first time, I'm getting this:


    Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/zabbix/include/db.inc.php on line 32

    Any ideas very much appreciated!
  • avenueb
    Junior Member
    • Feb 2005
    • 12

    #2
    lien 32

    btw, this is line 32 of /var/www/html/zabbix/include/db.inc.php

    30 if($DB_TYPE == "MYSQL")
    31 {
    32 $DB=mysql_pconnect($DB_SERVER,$DB_USER,$DB_PASSWOR D);
    33 if(!mysql_select_db($DB_DATABASE))
    34 {
    35 echo "Error connecting to database [".mysql_error()."]";
    36 exit;
    37 }
    38 mysql_select_db($DB_DATABASE);

    Comment

    • avenueb
      Junior Member
      • Feb 2005
      • 12

      #3
      hold on...

      just realized i compiled zabbix and then upgraded mysql from 3.23 to 4.1.. recomiling...

      Comment

      • avenueb
        Junior Member
        • Feb 2005
        • 12

        #4
        still

        so I have recompiled zabbix and reinstalled from scratch after the mysql upgrade.. I'm still having the exact same problem

        -thanks for any leads

        Comment

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

          #5
          Missing php4-mysql module?
          Alexei Vladishev
          Creator of Zabbix, Product manager
          New York | Tokyo | Riga
          My Twitter

          Comment

          • avenueb
            Junior Member
            • Feb 2005
            • 12

            #6
            Fatal error: Call to undefined function: mysql_pconnect() db.inc.php

            php-mysql is installed..

            # rpm -qa | grep php
            php-ldap-4.2.2-17.2
            php-mysql-4.2.2-17.2
            php-4.2.2-17.2
            php-imap-4.2.2-17.2


            -ps I realize I put this in the wrong section.. apologies

            Comment

            • avenueb
              Junior Member
              • Feb 2005
              • 12

              #7
              @#$ it

              I don't think its a problem with zabbix as much as it is a problem with how php/mysql is installed on my system. Hence, I'm re-compiling all of it, from scratch

              Comment

              • pattieja
                Junior Member
                • Mar 2005
                • 14

                #8
                php.conf

                I'm not sure where it's located on RedHat, but on Debian I had to change my /etc/php4/apache2/php.ini configuration file to add:

                extension=mysql.so

                and restart Apache.

                The error message went away, and I was presented with the ZABBIX login screen.

                Comment

                Working...