drvpv7995 2014-08-07 10:40 采纳率: 100%
浏览 34

意外错误,消息是:无法连接到数据库服务器'localhost'EZ Publish

Hi i am using EZ publish , when i try to access my site i am getting this error .

 Unexpected error, the message was : Unable to connect to the database server 'localhost'
    Error #0:  in /var/www/lib/ezdb/classes/ezpostgresqldb.php on line 125

in my

/var/www/settings/siteaccess/plain_site/site.ini.append.php
/var/www/settings/siteaccess/nor/site.ini.append.php
/var/www/settings/siteaccess/plain_site_admin/site.ini.append.php

i have defined

[DatabaseSettings]
DatabaseImplementation=ezpostgresql
Server=localhost

server as localhost ,

also my database user name and passwords are correct

also my site url is correct

[SiteSettings]
SiteName=test
SiteURL=xxxxxxx/index.php

also my database server is starts correctly

/etc/init.d/postgresql  restart

in my web browser it only gives the error

An unexpected error has occurred. Please contact the webmaster.

so

1.are there any log files  i should check ?
2.what are the possible reasons for this error , thank you very much
  • 写回答

2条回答 默认 最新

  • dongliming2416 2014-08-07 13:59
    关注

    Check what username and password is being used (lib/ezdb/classes/ezpostgresqldb.php). It may be that your in settings are not being read. Ensure that you have loaded your siteaccess properly in your override site.ini (settings/override/site.ini). It sounds like you have your connection strings lined up in your siteaccess ini files, but your siteaccesses are not being loaded.

    评论

报告相同问题?

悬赏问题

  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算
  • ¥15 powerbuilder中的datawindow数据整合到新的DataWindow
  • ¥20 有人知道这种图怎么画吗?
  • ¥15 pyqt6如何引用qrc文件加载里面的的资源
  • ¥15 安卓JNI项目使用lua上的问题
  • ¥20 RL+GNN解决人员排班问题时梯度消失
  • ¥60 要数控稳压电源测试数据
  • ¥15 能帮我写下这个编程吗
  • ¥15 ikuai客户端l2tp协议链接报终止15信号和无法将p.p.p6转换为我的l2tp线路