kumarldh
December 24th, 2007, 01:23 PM
it's been long 2 days and till date I see the following.
Warning: pg_connect() [function.pg-connect]: Cannot create new link. Too many open links (0) in /var/www/connect2PGSQL.php on line 3
Warning: pg_last_error() [function.pg-last-error]: No PostgreSQL link opened yet in /var/www/connect2PGSQL.php on line 4
Could not connect:
Here is the server signature that tells what all is installed.
Apache/2.2.4 (Ubuntu)
PHP/5.2.3-1ubuntu6.2
mod_ssl/2.2.4
OpenSSL/0.9.8e
mod_perl/2.0.2
Perl/v5.8.8 Server
PostGreSQl8.1
Here is the out put of phpinfo that may be of interest
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/pdo_pgsql.ini, /etc/php5/apache2/conf.d/pgsql.ini,
/etc/php5/apache2/conf.d/xsl.ini
I can connect to PGSQL using PGAdmin, I created a user and even a database. I can login to command based client. But PHP seems to be hurdle. I googled around on the web and dint see anything that could help me. I have all the .ini files and .so files/extensions in place.
Any guidance will be much appreciated.
Thanks.
Warning: pg_connect() [function.pg-connect]: Cannot create new link. Too many open links (0) in /var/www/connect2PGSQL.php on line 3
Warning: pg_last_error() [function.pg-last-error]: No PostgreSQL link opened yet in /var/www/connect2PGSQL.php on line 4
Could not connect:
Here is the server signature that tells what all is installed.
Apache/2.2.4 (Ubuntu)
PHP/5.2.3-1ubuntu6.2
mod_ssl/2.2.4
OpenSSL/0.9.8e
mod_perl/2.0.2
Perl/v5.8.8 Server
PostGreSQl8.1
Here is the out put of phpinfo that may be of interest
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini, /etc/php5/apache2/conf.d/pdo_pgsql.ini, /etc/php5/apache2/conf.d/pgsql.ini,
/etc/php5/apache2/conf.d/xsl.ini
I can connect to PGSQL using PGAdmin, I created a user and even a database. I can login to command based client. But PHP seems to be hurdle. I googled around on the web and dint see anything that could help me. I have all the .ini files and .so files/extensions in place.
Any guidance will be much appreciated.
Thanks.