Debian packages : PostgreSQL PHP extension required and not found
  • Hi there,

    got this error when installing the livesupport-station package :



    Fatal error: PostgreSQL PHP extension required and not found. in /opt/livesupport/var/storageServer/var/install/install.php on line 56



    PostgreSQL and php4-pgsql are installed on my box, and I got loads oh php scripts working with pgsql. I tried to comment the lines



    if(!function_exists('pg_connect')){

    trigger_error("PostgreSQL PHP extension required and not found.", E_USER_ERROR);

    exit(2);

    }



    in the install.php file but the install will fail later when trying to create the tables. Don't understand why it cannot find the pg_connect function...



    any clue?



    Thanks

    Dale

  • 5 Comments sorted by
  • I have livesupport-station working mostly Wink on a debian system right now, so I can try to help.





    I'm guessing that the php4-pear module is also installed? It seems that the installation program also requires that.





    Which version of php4-pgsql do you have installed? I'm using 4.3.10-4.

  • install.php will be executed by php-cgi binary (debian package name php4-cgi), not by the apache module (php4).

    With following debian packages it should work fine:
    www-data@woody:~$ dpkg -l | grep php
    rc php4 4.1.2-6woody3 A server-side, HTML-embedded scripting langu
    ii php4-cgi 4.1.2-6woody3 A server-side, HTML-embedded scripting langu
    ii php4-pear 4.1.2-6woody3 PEAR - PHP Extension and Application Reposit
    ii php4-pgsql 4.1.2-4 PostgreSQL module for php4
  • I'm having the exact same problem.

    It won't install due to to this:



    Fatal error: PostgreSQL PHP extension required and not found. in /opt/livesupport/var/storageServer/var/install/install.php on line 56

    dpkg: error processing livesupport-station (--install):

    subprocess post-installation script returned error exit status 1

    Setting up livesupport-studio (1.0rc1-1) ...

    Making post-install steps for GLiveSupport.





    I have the same packages that sebastian mentioned above and nada.

    Any thoughts?

    Todd

  • We are updating the (debian) install process now, perhaps it is better use the CVS or differently wait two days if the new package is there.
  • I too am having thos problem and I am trying to install 1.0rc2.

    Any suggestions?