php + postgresql + linux debian 2.2

From: Date: Thu, 05 Oct 2000 18:51:46 +0000
Subject: php + postgresql + linux debian 2.2
Groups: php.install 
Request: Send a blank email to php-install+get-167@lists.php.net to get a copy of this message
Hi ! I have a machine which run debian 2.2 kernel 2.2.17 glibc 2.1.3 ... and i want to install php 3.0.16 The database Postgresql 6.5.3-23 is installed on my system and works fine ! The version of apache is 1.3.9-13.1 I have try to understand the documentation ... and to follow the different steps !! => I 've installed the following pakages postgresql 6.5.3-23 postgresql postgresql-dev postgresql-client postgresql-contrib postgresql-doc postgresql-pl postgresql-slink postgresql-test apache version 1.3.9-13.1 apache apache-common apache-dev apache-perl apache-doc php 3.0.16-2potato php3 php3-cgi php3-cgi-gd php3-cgi-imap php3-cgi-pgsql php3-cgi-xml php3-dbase php3-dev php3-doc php3-gd php3-imap php3-pgsql php3-xml => I have the following configuration files for apache : (/etc/apache) in httpd.conf : ......... LoadModule pgsql_auth_module /usr/lib/apache/1.3/mod_auth_pgsql.so # LoadModule eaccess_module /usr/lib/apache/1.3/mod_eaccess.so LoadModule php3_module /usr/lib/apache/1.3/libphp3.so # LoadModule roaming_module /usr/lib/apache/1.3/mod_roaming.so .......... in srm.conf : .............. # For example, the PHP3 module (a separate Debian package) # will typically use: AddType application/x-httpd-php3 .phtml .php3 AddType application/x-httpd-php3-source .phps When i test some simple php scripts -> it's OK but when i try to connect my database i have the following message (i think well known) : Fatal error: Call to unsupported or undefined function pg_connect() in /var/www/podlyski/php/friends_1.php3 on line 6 => question: Is it mandatory to re-compile php3 with the options --with-pgsql ? If no, what i s false in my installation ? If i upgrade the version (PHP4 postgresql 7.0.2) do i need to re-compile too ? Thank you very much for your help !! Fabrice

« previous php.install (#167) next »