我想问一下安装驱动程序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
它显示我可以制作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.
答案 0 :(得分:1)
您需要使用easyapache编译带有postgreSQL支持的apache,它将解决您的问题。