Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8206609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:44:13+00:00 2026-06-07T08:44:13+00:00

I show phpinfo() info page has pgsql enable support But in file php $dbconn

  • 0

I show phpinfo() info page has pgsql enable support
But in file php

$dbconn =pg_connect("host=localhost port=5432 dbname=qlbv user=postgres password=123456")
 or die("can't connect db"); 

result of $dbconn is false;

I had config

# "local" is for Unix domain socket connections only
local  all        all                              md5   
# IPv4 local connections:
host    all        all        127.0.0.1/32        md5   
# IPv6 local connections:
host    all        all        ::1/128              md5   
# IPv4 internet connections:
host    all        all        0.0.0.0/0            md5 

# - Connection Settings -
listen_addresses='*'
#listen_addresses = 'localhost'        # what IP address(es) to listen on;
                                        # comma-separated list of addresses;
                                        # defaults to 'localhost', '*' = all
                                        # (change requires restart)
port = 5432                            # (change requires restart)

I setup webserver in centos
result of $dbconn is false;
Can you help me?
thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T08:44:14+00:00Added an answer on June 7, 2026 at 8:44 am

    you try types:

    getsebool -a | grep ftp
    setsebool -P ftp_home_dir on
    getsebool -a | grep ftp
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

If you run a phpinfo(); does it show exactly what is in the php.ini
I wanna run php script which has got curl on it. but following functions
show grants for charm@'localhost'; ---------------------+ | Grants for charm@localhost | +-----------------------------------------------------------------------------------------------------------------+ | GRANT USAGE
This .show and .hide works great in Firefox 3 but not in IE 7.
YQL SHOW TABLES has CSV and HTML. What about a table for Apache access
To show the complete list of available colors, one has to click the color
Show image very slowly ... after page is completely loaded.... That is , fade
I have tried everything.. GD will not enable! Essentially, I have extension_dir=C:\PHP\ext extension=php_gd2.dll I've
To get php.ini path i simply run <?php phpinfo(); ?> what is the way
The administrator has installed Xdebug 2.1.1 in our shared PHP 5.3.0 server in order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.