LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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-17-2010, 12:24 AM   #2
Sayan Acharjee
Member
 
Registered: Feb 2010
Location: Chennai, India
Distribution: Manjaro
Posts: 623

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


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



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 03:31 AM
PHP can't connect to PostgreSQL fr33z Linux - Software 3 03-15-2007 08:57 PM
DB Error: connect failed Postgresql and PHP Manashi Programming 0 03-22-2006 09:10 AM
Connect PHP to PostgreSQL (on red-hat 8) Hady Linux - Software 0 05-05-2004 12:53 AM
Connect to PostgreSQL via PHP RedHatMN Programming 3 12-12-2002 07:03 PM

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

All times are GMT -5. The time now is 12:40 PM.

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