How to install postgresql under php5 cgi with nginx on Ubuntu?

1.4k Views Asked by At

I've installed postgreSQL under Ubuntu, with nginx server but I can't make it work with php (php cgi). The error I'm getting is:

Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option.

I've installed the extension apt-get install php5-pgsql and I checked it exists under /usr/lib/php5/20090626.

I added the line in php.ini extension=pgsql.so and also with full path. I restarted PHP.

What else should I try?

0

There are 0 best solutions below