Comments (4)
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.
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.
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.
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)
- Search.fnc.php performs wrong query HOT 4
- Can this be used with MySQL since my host doesn't offer PostgreSQL? HOT 2
- is this mirror of gitlab HOT 3
- Trying to get in touch regarding a security issue HOT 5
- Trying to get in touch regarding a security issue
- current_school_id Null on create User HOT 1
- Tiny Formula Javascript error with formulat HOT 1
- What is the difference between this repository and the premium package? HOT 5
- Translation to Portuguese HOT 3
- Internationalization don't work HOT 2
- Greek Translation
- Adding Module Privilege error (add-on install, Docker) HOT 10
- helloe
- What are the minimum hardware requirements? HOT 3
- How realistic is it to upgrade a very old version to the current version? HOT 1
- MySQL 100% CPU Usage HOT 4
- French locale not working on Ubuntu 22.04 HOT 3
- I found a security issue. HOT 3
- Errors Connecting to Moodle HOT 8
- How is it possible to change a few things? (Moodle/IOMAD) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rosariosis.