Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经为此奋斗了几个小时,终于找到了一个解决方案,所以我想与其他有问题的人分享。
如果您在运行 Nginx 和 PHP-FPM 时在 Linux 上安装 Magento 时收到以下错误,请尝试以下答案:
PHP extension "dom" must be loaded. PHP extension "mcrypt" must be loaded. PHP extension "gd" must be loaded.
尝试运行:
yum install php-xml php-gd php-mcrypt
我想知道为什么这不起作用,我傻眼了好几个小时。
诀窍是在安装完所有内容后重新启动 php-fpm。我一直在重启 Nginx。
运行以下命令:
service php-fpm restart
希望这对某人有帮助!