Quantcast
Channel: Ubuntu Forums - Installation & Upgrades
Viewing all articles
Browse latest Browse all 26379

[Ubuntu 12.04] Postgresql + PHP + Apache, pg_conect() undefined

$
0
0
Hi, I am really stuck. I have installed:

Code:

Apache/2.5.0-dev (Unix) OpenSSL/1.0.1 PHP/5.4.9-dev
(Yes, I have to have exactly these versions of Apache and PHP)

Problem:

Code:

Fatal error: Call to undefined function pg_connect()
I have installed php5-pgsql as well as postgresql and postgresql-client. I need postgresql, but I can't use it... I thought there was a problem with LibPQ, so I tried to force it by putting "LoadModule PATH/libpq.so" but Apache says that the module has already been loaded.

If I try to uncomment "extension=php_pgsql.dll" in php.ini it shows that the file does not exist (the same happens for php_pdo_pgsql file) and when I tried to find it, the find command only showed me that "php_pgsql.h" exists.

Could you please help me? I am out of ideas.

Viewing all articles
Browse latest Browse all 26379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>