Module made with postgresql does not work

Started by Marcelo, July 06, 2015, 01:32:23 AM

Previous topic - Next topic

Marcelo

Friends, good night;
I am creating a module and need that he has connection to postgresql.
When trying to connect the following error occurred:

Fatal error: Call to undefined function pg_connect ()

The PHP postgre is not enabled, this value does not appear in phpinfo ().

The CWP is with postgre working, use the phppgadmin normally.
I believe that for the ADMIN area is not enabled pgsql php module.
How can I enable this module for ADM area properly?
Thanks.

Marcelo

How no one helped me, I had to research and work alone.
Here's the solution to my problem, I had to recompile the php that was used for the ADM area.

So others do not go through what I went through:

/usr/local/src/cwp/php-5.4.27/configure --with-apxs2=/usr/local/cwpsrv/bin/apxs --prefix=/usr/local/cwp/php54 --with-config-file-path=/usr/local/cwp/php54 --with-config-file-scan-dir=/usr/local/cwp/php54/php.d --with-libdir=lib --with-mysql --with-mysqli --enable-mbstring --disable-debug --disable-rpath --with-bz2 --with-curl --with-gettext --with-iconv --with-openssl --with-gd --with-mcrypt --with-pcre-regex --with-zlib --with-mysql-sock=/var/lib/mysql/mysql.sock --with-pgsql