PHP suddenly not recognising pg_connect

PHP suddenly not recognising pg_connect

am 12.10.2009 22:38:15 von Thom Brown

--000e0ce044b4e580880475c2e92a
Content-Type: text/plain; charset=ISO-8859-1

I restarted apache today and suddenly a site I managed stopped working. It
seems php no longer recognises the pg_connect command. I'm running
PostgreSQL 8.4.1 and PHP 5.2.11 on Gentoo. I recompiled PHP just in case
I'd upgraded PostgreSQL before without recompiling PHP with it, but no luck.
I've checked what gentoo says I've got installed, and it says that it used
postgres as one of the includes with dev-lang/php.
I've also noticed PHP has also dropped MySQL support. Doing a phpinfo()
check, I've got --with-pgsql=shared showing and also mysql=shared,/usr'
'--with-mysql-sock=/var/run/mysqld/mysqld.sock'
'--with-mysqli=shared,/usr/bin/mysql_config, but there's no section for
PostgreSQL on the page, or MySQL.

I installed pgbouncer a couple days ago too, but I don't expect that's got
anything to do with this.

What's going on?

Thom

--000e0ce044b4e580880475c2e92a
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I restarted apache today and suddenly a site I managed stopped working. =A0=
It seems php no longer recognises the pg_connect command. =A0I'm runnin=
g PostgreSQL 8.4.1 and PHP=A05.2.11 on Gentoo. =A0I recompiled PHP just in =
case I'd upgraded PostgreSQL before without recompiling PHP with it, bu=
t no luck. =A0I've checked what gentoo says I've got installed, and=
it says that it used postgres as one of the includes with dev-lang/php. v>


I've also noticed PHP has also dropped MySQL support. =
=A0Doing a phpinfo() check, I've got=A0--with-pgsql=3Dshared showing an=
d also mysql=3Dshared,/usr' '--with-mysql-sock=3D/var/run/mysqld/my=
sqld.sock' '--with-mysqli=3Dshared,/usr/bin/mysql_config, but there=
's no section for PostgreSQL on the page, or MySQL.



I installed pgbouncer a couple days ago too, but I don&=
#39;t expect that's got anything to do with this.

<=
div>What's going on?

Thom


--000e0ce044b4e580880475c2e92a--

Re: PHP suddenly not recognising pg_connect

am 12.10.2009 23:03:15 von Thom Brown

--00151747b45c4dd9f60475c343b8
Content-Type: text/plain; charset=ISO-8859-1

Okay, ignore me. It appears that the ini files hadn't been updated,
although looking at the merge, I don't see exactly how that helped.
It's working now anyway. Postgres and MySQL are both showing in phpinfo()
now.

Thom

2009/10/12 Thom Brown

> I restarted apache today and suddenly a site I managed stopped working. It
> seems php no longer recognises the pg_connect command. I'm running
> PostgreSQL 8.4.1 and PHP 5.2.11 on Gentoo. I recompiled PHP just in case
> I'd upgraded PostgreSQL before without recompiling PHP with it, but no luck.
> I've checked what gentoo says I've got installed, and it says that it used
> postgres as one of the includes with dev-lang/php.
> I've also noticed PHP has also dropped MySQL support. Doing a phpinfo()
> check, I've got --with-pgsql=shared showing and also mysql=shared,/usr'
> '--with-mysql-sock=/var/run/mysqld/mysqld.sock'
> '--with-mysqli=shared,/usr/bin/mysql_config, but there's no section for
> PostgreSQL on the page, or MySQL.
>
> I installed pgbouncer a couple days ago too, but I don't expect that's got
> anything to do with this.
>
> What's going on?
>
> Thom
>

--00151747b45c4dd9f60475c343b8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Okay, ignore me. =A0It appears that the ini files hadn't been updated, =
although looking at the merge, I don't see exactly how that helped. >

It's working now anyway. =A0Postgres and MySQL are both=
showing in phpinfo() now.



Thom

2009/10/12 Thom =
Brown <thombrow=
n@gmail.com
>

rgin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I restarted apache today and suddenly a site I managed stopped working. =A0=
It seems php no longer recognises the pg_connect command. =A0I'm runnin=
g PostgreSQL 8.4.1 and PHP=A05.2.11 on Gentoo. =A0I recompiled PHP just in =
case I'd upgraded PostgreSQL before without recompiling PHP with it, bu=
t no luck. =A0I've checked what gentoo says I've got installed, and=
it says that it used postgres as one of the includes with dev-lang/php. v>



I've also noticed PHP has also dropped MySQL support. =
=A0Doing a phpinfo() check, I've got=A0--with-pgsql=3Dshared showing an=
d also mysql=3Dshared,/usr' '--with-mysql-sock=3D/var/run/mysqld/my=
sqld.sock' '--with-mysqli=3Dshared,/usr/bin/mysql_config, but there=
's no section for PostgreSQL on the page, or MySQL.




I installed pgbouncer a couple days ago too, but I don&=
#39;t expect that's got anything to do with this.

<=
div>What's going on?



Thom




--00151747b45c4dd9f60475c343b8--