如何为安装驱动程序php cpanel设置目录路径postgresql

如何为安装驱动程序php cpanel设置目录路径postgresql,php,postgresql,centos,cpanel,Php,Postgresql,Centos,Cpanel,我想询问有关安装php postgresql-9.1驱动程序的问题 我收到错误消息: Fatal error: Call to undefined function pg_connect() in /home/adminku/public_html/index.php on line 2 当我在谷歌上搜索并试图使用EasyAppache安装驱动程序时,安装驱动程序的问题显示找不到目录 我将目录数据postgresql更改为另一个路径,因为我的网站管理员发布了分区,但他无法设置postgresq

我想询问有关安装php postgresql-9.1驱动程序的问题

我收到错误消息:

Fatal error: Call to undefined function pg_connect() in /home/adminku/public_html/index.php on line 2
当我在谷歌上搜索并试图使用EasyAppache安装驱动程序时,安装驱动程序的问题显示找不到目录

我将目录数据postgresql更改为另一个路径,因为我的网站管理员发布了分区,但他无法设置postgresql

我找到了一篇文章

这表明我可以制作costum目录:

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. 
  • 是否有人尝试将此模块与costum目录一起使用
  • 在我的php.ini中,使用dll的扩展不像我所知道的通常的centOS那样。我的bos说,这是cpanel的默认设置,但是当我尝试用locate搜索php_pgsql.dll时,我找不到它,是因为没有找到该dll吗?还是因为我的目录引擎改变了

  • 您需要使用easyapache编译支持postgreSQL的apache,这将解决您的问题。

    您需要使用easyapache编译支持postgreSQL的apache,这将解决您的问题