阿尔哦覅和 发表于 2016-11-21 02:21:55

Unable to connect to PostgreSQL server: could not connect to server: Permission

  When running a php page from the browser a connectiontoPostgresqlis deniedeven when it can be accessed by pgadmin normally.
  1- Run the php page from the prompt, for example, if page is named:conntest.php:
  php /var/www/html/conntest.php
  If it is sucessful then Apache is probably being blocked bySElinux.
  2-
  #gedit /etc/selinux/config
  disable SElinux and reboot... congratulations, now it isworking.
页: [1]
查看完整版本: Unable to connect to PostgreSQL server: could not connect to server: Permission