2

好的,我已经尝试按照在线说明让 Postgresql 与 OwnCloud 一起安装,但它仍然给我带来了可怕的“PostgreSQL 用户名和/或密码无效,您需要输入现有帐户或管理员。”

我已经安装了:

  • Ubuntu 12.04LTS
  • 阿帕奇 2.2
  • PHP 5.3
  • PostgreSql 9.3
  • 自有云 6.0.3

我的 Web 服务器托管在 192.168.1.11 的内部服务器上,并且 Postgresql 在端口 3145 上运行。

有关使其与 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_',
);
4

2 回答 2

0

根据@RandolphCarter - 当我升级到 OwnCloud7.0 时,我能够使用向导,选择 PostgreSQL 选项并输入 [serverip]:[Postgresql 端口号] - 例如 - 192.1.1.1:1118 并且没有问题. 这是关闭的。

于 2014-07-26T15:45:31.663 回答
0

由于某种原因,安装向导搜索 localhost 并在我的 pg_hba.conf 中发现没有 IPv6 记录添加此记录后它可以工作。

host    all             all             ::1/128                 md5

或从 /etc/hosts 中删除 ::1 应该是相同的。

::1         localhost
于 2021-06-17T15:08:27.267 回答