Re: PHP cann't access to postgres databse

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



the error message in Apache error-log is " PHP Warning:  pg_connect() [<a
href='function.pg-connect'>function.pg-connect</a>]: Unable to connect to
PostgreSQL server: could not connect to server: Permission denied\n\tIs
the server running on host &quot;localhost&quot; and accepting\n\tTCP/IP
connections on port 5432? "


>
> It will be good to know what the error messages are, so we can go from
> there
>
>
>> Date: Thu, 25 Jun 2009 17:54:43 -0700
>> Subject:  PHP cann't access to postgres databse
>> From: donghe@xxxxxxxxxxx
>> To: pgsql-admin@xxxxxxxxxxxxxx
>>
>> Hi gurus!
>>
>> my PHP scripts don't call upon the postgres database from within HTML
>> files served to web browsers by Apache, but PHP scritps itself can
>> access
>> to database. I guess some configuration between PHP and Apache is wrong.
>> Do anybody have any idea?
>> Thanks!
>>
>> Dong He
>>
>>
>>
>>
>>
>> --
>> Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
>> To make changes to your subscription:
>> http://www.postgresql.org/mailpref/pgsql-admin
>



-- 
Sent via pgsql-admin mailing list (pgsql-admin@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux