pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedApache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
4+ messages / 3 participants
[nested] [flat]
* Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
@ 2006-03-05 01:21 Stuart <sfbarbee@yahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: Stuart @ 2006-03-05 01:21 UTC (permalink / raw)
To: pgsql-php
Folks,
I recently upgraded to Apache 2.2 w/ PHP 5.1.2 to connect to my PostGreSQL
8.1 databases on a SuSE 10.0 system. I used the rpm's provided by SuSE to
install the Apache and PHP packages . Apache works fine and phpinfo() shows
all the normal info except the section on additional modules is empty. I am
not sure if this is normal.
I get the following error and cannot figure out why pgsql module is not
loading.
PHP Fatal error: Call to undefined function pg_connect()
Can anyone help with this?
Thanks,
Stuart
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
@ 2006-03-05 06:25 chris smith <dmagick@gmail.com>
parent: Stuart <sfbarbee@yahoo.com>
0 siblings, 1 reply; 4+ messages in thread
From: chris smith @ 2006-03-05 06:25 UTC (permalink / raw)
To: sfbarbee@yahoo.com; +Cc: pgsql-php
On 3/5/06, Stuart <sfbarbee@yahoo.com> wrote:
> Folks,
>
> I recently upgraded to Apache 2.2 w/ PHP 5.1.2 to connect to my PostGreSQL
> 8.1 databases on a SuSE 10.0 system. I used the rpm's provided by SuSE to
> install the Apache and PHP packages . Apache works fine and phpinfo() shows
> all the normal info except the section on additional modules is empty. I am
> not sure if this is normal.
>
> I get the following error and cannot figure out why pgsql module is not
> loading.
>
> PHP Fatal error: Call to undefined function pg_connect()
That means php doesn't know what pg_connect is.
See if you need to install a php-pgsql rpm, then restart apache (it
should show "postgresql" in the phpinfo page now).
--
Postgresql & php tutorials
http://www.designmagick.com/
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
@ 2006-03-05 18:41 Stuart Barbee <sfbarbee@yahoo.com>
parent: chris smith <dmagick@gmail.com>
0 siblings, 0 replies; 4+ messages in thread
From: Stuart Barbee @ 2006-03-05 18:41 UTC (permalink / raw)
To: pgsql-php; +Cc: chris smith <dmagick@gmail.com>
Chris,
Yes, I have the php-pgsql rpm installed along with
many others. I checked the location of the extensions
and they match where php expects them to be (according
to php.ini and phpinfo()). Any other suggestions as
to that might be the problem? I am just wondering if
SuSE team broke something in the new version of Apache
2.2 or version of php.
Thanks,
Stuart
--- chris smith <dmagick@gmail.com> wrote:
> On 3/5/06, Stuart <sfbarbee@yahoo.com> wrote:
> > Folks,
> >
> > I recently upgraded to Apache 2.2 w/ PHP
> 5.1.2 to connect to my PostGreSQL
> > 8.1 databases on a SuSE 10.0 system. I used the
> rpm's provided by SuSE to
> > install the Apache and PHP packages . Apache
> works fine and phpinfo() shows
> > all the normal info except the section on
> additional modules is empty. I am
> > not sure if this is normal.
> >
> > I get the following error and cannot figure out
> why pgsql module is not
> > loading.
> >
> > PHP Fatal error: Call to undefined function
> pg_connect()
>
> That means php doesn't know what pg_connect is.
>
> See if you need to install a php-pgsql rpm, then
> restart apache (it
> should show "postgresql" in the phpinfo page now).
>
> --
> Postgresql & php tutorials
> http://www.designmagick.com/
>
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1
@ 2006-03-05 18:50 Stuart Barbee <sfbarbee@yahoo.com>
0 siblings, 0 replies; 4+ messages in thread
From: Stuart Barbee @ 2006-03-05 18:50 UTC (permalink / raw)
To: pgsql-php; +Cc: Horacio Degiorgi <horaciod@gmail.com>
Horacio,
I was thinking it could be something like that but
have not found a parameter that seems to affect that
yet. The SuSE team compiles the extenstions
separately and puts an include statement into the
php.ini to insert an *.ini file for each extension.
Supposedly you can comment the php-pgsql.ini file to
exclude the extension. The extension is not
commented, so I am not sure what could be wrong.
Maybe something is broken here. Do you know anyone
using this combination of packages (Apache 2.2 w/ APR
1.0, PHP 5.1.2 and PostGreSQL 8.1) and have it working
ok?
Stuart
--- Horacio Degiorgi <horaciod@gmail.com> wrote:
> check your php.ini, there must to be uncommented the
> extension for postgresql
> after correct that you need to reload apache to
> apply the changes.
>
>
>
> On 3/4/06, Stuart <sfbarbee@yahoo.com> wrote:
> > Folks,
> >
> > I recently upgraded to Apache 2.2 w/ PHP
> 5.1.2 to connect to my PostGreSQL
> > 8.1 databases on a SuSE 10.0 system. I used the
> rpm's provided by SuSE to
> > install the Apache and PHP packages . Apache
> works fine and phpinfo() shows
> > all the normal info except the section on
> additional modules is empty. I am
> > not sure if this is normal.
> >
> > I get the following error and cannot figure out
> why pgsql module is not
> > loading.
> >
> > PHP Fatal error: Call to undefined function
> pg_connect()
> >
> > Can anyone help with this?
> >
> > Thanks,
> >
> > Stuart
> >
> > ---------------------------(end of
> broadcast)---------------------------
> > TIP 6: explain analyze is your friend
> >
>
>
>
> --
> Horacio Degiorgi
> http://blog.codigophp.com
> Mendoza - Argentina
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2006-03-05 18:50 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2006-03-05 01:21 Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1 Stuart <sfbarbee@yahoo.com>
2006-03-05 06:25 ` chris smith <dmagick@gmail.com>
2006-03-05 18:41 ` Stuart Barbee <sfbarbee@yahoo.com>
2006-03-05 18:50 Re: Apache 2.2 w/ PHP 5.1.2 and PostGreSQL 8.1 Stuart Barbee <sfbarbee@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox