编程语言
首页 > 编程语言> > php-如何使用Postgre安装Moodle

php-如何使用Postgre安装Moodle

作者:互联网

我正在使用postgre数据库安装Moodle 2.1.我面临的问题是它给了我错误

PHP has not been properly configured with the PGSQL extension so that
it can communicate with PostgreSQL. Please check your php.ini file or
recompile PHP.

我已经调整了pgsql的所有必需扩展名.但我仍然遇到相同的错误.我什至在postgre(一个空数据库)中创建了一个数据库,但我仍然没有工作.

请帮我

谢谢

解决方法:

您是否尝试过(命令行):

apt-get install php5-pgsql
apache2ctl restart

要么:

sudo apt-get install php5-pgsql
sudo apache2ctl restart

标签:moodle,php
来源: https://codeday.me/bug/20191102/1991177.html