Giter Site home page Giter Site logo

Comments (4)

francoisjacquet avatar francoisjacquet commented on June 2, 2024

Hi zeine77,

Those tests are simply to avoid specifying the host and the port if those are the default ones.
This can avoid problems like this one: http://www.php.net/manual/en/function.pg-connect.php#38291

FYI, I never experienced a problem connecting from localhost and port 5432, so I think you should look on the side of your PostgreSQL config instead.

from rosariosis.

zeine77 avatar zeine77 commented on June 2, 2024

Hello again,

I reviewed my postgresql config, it seems ok.
I'm using postgresql 8.4 on Ubuntu 12.04 LTS 64 bit.

Here are my two config files

postgresql.conf (I posted just the "CONNECTIONS AND AUTHENTICATION" section)
http://pastebin.com/RPXbm38k

pg_hba.conf
http://pastebin.com/4ajfDeN0

And this is the home page I get
http://pastebin.com/FAhtC2w0

when I commented the two tests evrything ran I it expected to do.

Thanks again for your time.

from rosariosis.

francoisjacquet avatar francoisjacquet commented on June 2, 2024

Hi zeine77,

Thanks for posting you PostgreSQL config.
After a review, in pg_hba.conf, the line about Database administrative login by Unix domain socket is different on my config.
You have:
local all postgres ident

I have instead:
local all postgres peer

As for the connection error on your home page, the Additional Information is missing. Please check the Apache error log in hope there is a more useful error message.

from rosariosis.

zeine77 avatar zeine77 commented on June 2, 2024

Thanks a lot for your replay.

I changed my pg_hba.conf so it looks now like this

#Database administrative login by Unix domain socket
local all postgres trust

I tried 'peer' but it didn't recognize it (probably because my version: 8.4).

Now it works great.

from rosariosis.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.