解决 PHP 错误:'function bindtextdomain not found' - 安装 gettext 扩展
这个错误是因为你的 PHP 环境没有安装 gettext 扩展。你需要安装 gettext 扩展并启用它来解决这个问题。
以下是在 Ubuntu 中安装 gettext 扩展的命令:
sudo apt-get install php-gettext
安装完成后,你需要在 PHP 配置文件中启用 gettext 扩展。
在 Ubuntu 中,你可以编辑 /etc/php/7.x/apache2/php.ini 文件(其中 7.x 是你当前 PHP 版本的数字),找到以下行并将其取消注释:
;extension=php_gettext.dll
取消注释后,将其改为:
extension=php_gettext.so
保存并重新启动 Apache 服务器,你的 PHP 环境就可以使用 gettext 扩展了。
原文地址: https://www.cveoy.top/t/topic/n0U9 著作权归作者所有。请勿转载和采集!