gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-29 13:34:18 25 4
gpt4 key购买 nike

我想询问安装驱动程序 php postgresql-9.1

我收到错误信息:

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

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

我把目录data 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 吗?还是因为我的目录引擎改变了?

最佳答案

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

关于php - 如何为安装驱动程序php cpanel设置目录路径postgresql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16905995/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com