LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2010, 07:01 PM   #1
nuebelhor
LQ Newbie
 
Registered: Oct 2009
Posts: 5

Rep: Reputation: 0
Which directory for php.ini file? how to connect with postgresql


Hi all,

Thanks for the help with the previous question...we did get php installed! Now for the next question...having trouble getting php to connect with postgresql database. I believe this has to do with the php.ini file. What directory do we put the php.ini file? and do we just use the php.ini-dist file that was downloaded during install rename it php.ini and add under dynamic extensions

extension=pgsql.so

?

Believe that php.ini should go under

/usr/bin

directory, because that is what we type when running php script

/usr/bin/php some_script.php

Is this correct?

Thanks again,

Nick
 
Old 03-16-2010, 11:24 PM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 624

Rep: Reputation: 64
Quote:
Originally Posted by nuebelhor View Post
Hi all,

Thanks for the help with the previous question...we did get php installed! Now for the next question...having trouble getting php to connect with postgresql database. I believe this has to do with the php.ini file. What directory do we put the php.ini file? and do we just use the php.ini-dist file that was downloaded during install rename it php.ini and add under dynamic extensions

extension=pgsql.so

?

Believe that php.ini should go under

/usr/bin

directory, because that is what we type when running php script

/usr/bin/php some_script.php

Is this correct?

Thanks again,

Nick

Use this command:
Quote:
#whereis php.ini
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP won't recognize my Configuration File (php.ini) path kriezo Programming 4 02-14-2008 02:31 AM
PHP can't connect to PostgreSQL fr33z Linux - Software 3 03-15-2007 07:57 PM
DB Error: connect failed Postgresql and PHP Manashi Programming 0 03-22-2006 08:10 AM
Connect PHP to PostgreSQL (on red-hat 8) Hady Linux - Software 0 05-04-2004 11:53 PM
Connect to PostgreSQL via PHP RedHatMN Programming 3 12-12-2002 06:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:35 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration