LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 11-10-2006, 10:18 PM   #1
markw8500
Member
 
Registered: Jul 2005
Posts: 104

Rep: Reputation: 15
Can't Connect to Postgres with PHP...


I just installed Fedora FC4, and I got apache, postgres and php up and running, but I can not establish a connection to the postgres database via php...
I opened port 5432...
I can log in with "psql -h server_name -U login_name db_name" just fine...
I just can not do anything with pg_connect()...

Anybody got any suggestions....
 
Old 11-11-2006, 04:32 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu
Posts: 1,198

Rep: Reputation: 76
probably you have to add the postgres driver mod to your php extensions? or simply edit php.ini to work with it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache php postgres headaches sandWorm Mandriva 3 10-09-2006 10:51 AM
unable to connect to postgres from php jkmartha Linux - Software 1 07-04-2005 02:51 AM
php postgres problem Xing Linux - Software 3 03-08-2004 12:22 PM
connect two databases using postgres? w0000422 Programming 3 02-21-2004 02:18 PM
postgres connect richard22 Linux - Software 4 01-29-2003 12:42 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration