Ad Widget

Collapse

Fatal error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dunedin
    Junior Member
    • Dec 2005
    • 12

    #1

    Fatal error

    Hello,

    I am running FC3, Kernel - 2.6.9, I installed zabbix on my machine but i get

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

    when trying to execute http://localhost (or) http://ipaddress. phpinfo page works fine.

    The installed packages are :

    rpm -qa | grep php
    php-4.3.9-3
    php-mbstring-4.3.9-3
    php-ldap-4.3.9-3
    php-mysql-4.3.9-3
    php-ncurses-4.3.9-3
    php-pear-4.3.9-3
    php-devel-4.3.9-3
    php-snmp-4.3.9-3
    php-gd-4.3.9-3

    rpm -qa | grep MySQL
    MySQL-client-4.0.26-0
    MySQL-server-4.0.26-0
    MySQL-devel-4.0.26-0

    rpm -qa | grep httpd
    httpd-suexec-2.0.52-3
    system-config-httpd-1.3.1-1
    httpd-2.0.52-3
    httpd-manual-2.0.52-3

    apache and mysql are running.


    tried searching the forum, installed necessary package as said in the forum, but no luck.Can anyone advise ?
  • James Wells
    Senior Member
    • Jun 2005
    • 664

    #2
    Greetings,

    Right off the bat, I suspect that you need to modify your php.ini to load the mysql.so extension.
    Unofficial Zabbix Developer

    Comment

    • dunedin
      Junior Member
      • Dec 2005
      • 12

      #3
      Thanks for your reply.
      mysql.so extension is already loaded in php.ini. any other suggestion ?

      Comment

      • jcrm
        Junior Member
        • Jun 2005
        • 7

        #4
        Originally posted by dunedin
        Thanks for your reply.
        mysql.so extension is already loaded in php.ini. any other suggestion ?
        Originally posted by http://www.google.co.uk/search?q=%22Call+to+undefined+function%3A+mysql_pc onnect%22
        Try this....

        In your php.ini:

        [MySQL]
        ; Allow or prevent persistent links.
        mysql.allow_persistent = On


        This will set to 'on' for mysql.allow_persistent, ok but is mysql
        enabled.
        alternativly edit the file referenced in the error, and change mysql_pconnect to mysql_connect

        Comment

        • elkor
          Senior Member
          • Jul 2005
          • 299

          #5
          what does the output of phpinfo say about mysql availability?

          Comment

          Working...