0

I need to be able to connect from my (Ubuntu + Apache) web server to a remote PostgreSQL database, but unfortunately, the version of PHP on my web server doesn't have the php_pgsql.dll library and throws an error if I try and uncomment this section of php.ini.

I've searched the internet and found lots of advice on how to install PostgreSQL on my server, but I don't need to run the database service on my web server, I just need to allow PHP to connect to the remote service.

Can anyone give me a step-by-step noob guide to installing the driver?

2
  • 2
    Linux doesn't use dll files, those are for Windows. Commented Mar 24, 2014 at 13:22
  • @Quentin - thanks, that's right, sometimes my lack of linux knowledge is a real pain. Commented Mar 24, 2014 at 14:36

2 Answers 2

2

Try this:

sudo apt-get install php5-pgsql
Sign up to request clarification or add additional context in comments.

2 Comments

This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post.
@AnantDabhi I do believe that this is the way to install the PostgreSQL "driver" on Ubuntu with running Apache with PHP. According to me that is the answer.
1
apt-get install php5-pgsql

Linux doesn't use DLL files but Linux distributions to have package management systems.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.