PHP-问题处理Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

时间:2022-07-22 14:18:30

1.问题

  今天重新安装了ubuntu,PHP,MySQL,Apache,到测试CMS项目时发生一个错误:

  Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

PHP-问题处理Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

2.解决:

  2.1 安装php-xml:

sudo apt-get install php-xml

 PHP-问题处理Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()

 2.2重启apache服务:

sudo service apache2 restart

PHP-问题处理Fatal error: Uncaught Error: Call to undefined function simplexml_load_file()