Guest User

Untitled

a guest
Sep 12th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. pg_connect in php return false
  2. $dbconn =pg_connect("host=localhost port=5432 dbname=qlbv user=postgres password=123456")
  3. or die("can't connect db");
  4.  
  5. # "local" is for Unix domain socket connections only
  6. local all all md5
  7. # IPv4 local connections:
  8. host all all 127.0.0.1/32 md5
  9. # IPv6 local connections:
  10. host all all ::1/128 md5
  11. # IPv4 internet connections:
  12. host all all 0.0.0.0/0 md5
  13.  
  14. # - Connection Settings -
  15. listen_addresses='*'
  16. #listen_addresses = 'localhost' # what IP address(es) to listen on;
  17. # comma-separated list of addresses;
  18. # defaults to 'localhost', '*' = all
  19. # (change requires restart)
  20. port = 5432 # (change requires restart)
  21.  
  22. getsebool -a | grep ftp
  23. setsebool -P ftp_home_dir on
  24. getsebool -a | grep ftp
Add Comment
Please, Sign In to add comment