【问题标题】:how to setting directory path postgresql for install driver php cpanel如何设置目录路径 postgresql 以安装驱动程序 php cpanel
【发布时间】:2013-05-30 03:36:22
【问题描述】:

我想问一下安装驱动php postgresql-9.1

我收到错误消息:

Fatal error: Call to undefined function pg_connect() in /home/adminku/public_html/index.php on line 2

当我用谷歌搜索并尝试使用easyapache安装驱动程序时,安装驱动程序的问题显示找不到目录,

我将目录数据postgresql更改为另一个路径,因为我的站长发出分区,但他无法设置postgresql

我发现文章http://docs.cpanel.net/twiki/bin/view/EasyApache/Php/ModulePgsql

它表明我可以制作服装目录:

Notes
EasyApache searches the following locations for the psql binary:
    /usr/bin/
    /usr/local/bin/ 
It then runs psql --version to determine the PostgreSQL version on your system.
EasyApache searches the following locations for the pg_config binary:
    /usr/local/bin
    /usr/bin 
If the binary is not found, this module will be skipped.
If you enable this option, --with-pgsql=directory will be added to PHP's configuration options. 
  1. 有人尝试将此模块与 costum 目录一起使用吗?
  2. 在我的 php.ini 中,使用 dll 的扩展与我所知道的通常的 centOS 不同。我的老板说,这是cpanel的默认设置,但是当我尝试使用locate搜索php_pgsql.dll时,我找不到它,是因为找不到那个dll吗?还是因为我的目录引擎发生了变化?

【问题讨论】:

    标签: php postgresql centos cpanel


    【解决方案1】:

    你需要用easyapache编译支持postgreSQL的apache,它会解决你的问题。

    【讨论】:

      猜你喜欢
      • 2012-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多