dtwxt88240 2017-10-17 05:27
浏览 112

php71w-xml是安装但我仍然有这个错误:致命错误:未捕获错误:类'DOMDocument'找不到

I have install php71w-xml but im still getting this error :

Fatal error: Uncaught Error: Class 'DOMDocument' not found in

my operating system is centos7.

  • 写回答

1条回答 默认 最新

  • drtoclr046994545 2017-10-18 19:17
    关注

    Are you sure that the default php version on the server is php-7.1.x? do a rpm -qa | grep php and see what packages are installed. Also check /etc/php.d/, see if there is any .ini file that is supposed to load the xml php extesion/module.

    You could also issue a php -i and then check for xml or create a info.php file with this content <?php phpinfo(); ?>. Place somewhere like in /var/www/html or wherever your apache root folder is and try accessing it in a web browser and check the php info output there and see if xml extension is actually loaded.

    评论

报告相同问题?

悬赏问题

  • ¥15 ogg dd trandata 报错
  • ¥15 高缺失率数据如何选择填充方式
  • ¥50 potsgresql15备份问题
  • ¥15 Mac系统vs code使用phpstudy如何配置debug来调试php
  • ¥15 目前主流的音乐软件,像网易云音乐,QQ音乐他们的前端和后台部分是用的什么技术实现的?求解!
  • ¥60 pb数据库修改与连接
  • ¥15 spss统计中二分类变量和有序变量的相关性分析可以用kendall相关分析吗?
  • ¥15 拟通过pc下指令到安卓系统,如果追求响应速度,尽可能无延迟,是不是用安卓模拟器会优于实体的安卓手机?如果是,可以快多少毫秒?
  • ¥20 神经网络Sequential name=sequential, built=False
  • ¥16 Qphython 用xlrd读取excel报错