简体   繁体   English

使用 PostgreSQL 安装 OwnCloud - 未在 Ubuntu 12.04LTS 上进行身份验证

[英]Install OwnCloud with PostgreSQL - Not Authenticating on Ubuntu 12.04LTS

Okay all I have tried to follow the instructions online for getting Postgresql to work with OwnCloud install but it still gives me the dreaded "PostgreSQL username and/or password not valid You need to enter either an existing account or the administrator."好吧,我已经尝试按照在线说明让 Postgresql 与 OwnCloud 安装一起工作,但它仍然给我带来可怕的“PostgreSQL 用户名和/或密码无效,您需要输入现有帐户或管理员。”

I have installed:我已经安装:

  • Ubuntu 12.04LTS Ubuntu 12.04LTS
  • Apache 2.2阿帕奇 2.2
  • PHP 5.3 PHP 5.3
  • PostgreSql 9.3 PostgreSQL 9.3
  • OwnCloud 6.0.3自己的云 6.0.3

My web server is hosted on an internal server at 192.168.1.11 and I have Postgresql running on port 3145.我的 Web 服务器托管在位于 192.168.1.11 的内部服务器上,并且我在端口 3145 上运行了 Postgresql。

Any tips on getting this to work with Postgresql... Here is my config.php file:关于让它与 Postgresql 一起工作的任何提示......这是我的 config.php 文件:

$CONFIG = array (
  'instanceid' => 'oc57c67b8ac3',
  'passwordsalt' => '07b04cab4ff3d074dc59fc3ef82650',
  'trusted_domains' =>
  array (
    0 => 'www.example.com',
  ),
  'datadirectory' => '/Cloud/owncloud/data',
  'dbtype' => 'pgsql',
  'version' => '6.0.3.1',
  'dbname' => 'owncloud',
  'dbuser' => 'cloudadm',
  'dbpassword' => 'mypassword',
  'dbhost' => '192.168.1.11:3145',
  'dbtableprefix' => 'oc_',
);

Per @RandolphCarter -- when I upgraded to OwnCloud7.0 I was able to use the wizard, select the PostgreSQL option and enter [serverip]:[Postgresql port number] - eg -- 192.1.1.1:1118 and it worked with no problems. 每个@RandolphCarter-升级到OwnCloud7.0时,我可以使用该向导,选择PostgreSQL选项,然后输入[serverip]:[Postgresql端口号]-例如-192.1.1.1:1118,它可以正常工作。 This is closed. 这是关闭的。

For some reason setup wizard searching localhost and found no IPv6 record in my pg_hba.conf After add this record it works.出于某种原因,设置向导搜索本地主机并在我的 pg_hba.conf 中没有发现 IPv6 记录添加此记录后,它可以工作。

host    all             all             ::1/128                 md5

or remove ::1 from /etc/hosts should be the same.或从 /etc/hosts 中删除 ::1 应该是相同的。

::1         localhost

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM