Solution to php7 500 error: First check the Nginx error log; then use the command "aptitude install php-mbstring php-xml" to install the extension.
Recommended: "PHP Video Tutorial"
After upgrading to PHP7, the page is blank and a 500 error occurs Waiting for problems
I haven’t edited my blog for a long time. When I modified some content a few days ago, I found that there were blank pages, 500 Internal Error and other problems. After checking the Nginx log, I found an error similar to this
PHP message: PHP Fatal error: Uncaught Error: Call to undefined function utf8_decode()
Mainly because some extensions were separated and became separate packages. According to the Nginx error log, you can install whatever is missing. Taking Dokuwiki as an example, it is currently found that these two additional packages need to be installed
aptitude install php-mbstring php-xml
Other separate packages are as follows (Debian update log)
* Several extensions have been split into separate extension packages: - php-dba - Database (dbm-style) Abstraction Layer - php-mbstring - Multibyte String - php-soap - SOAP - php-xml - DOM, SimpleXML, WDDX, XML, XMLReader and XMLWriter - php-zip - Zip
The above is the detailed content of How to solve problems such as 500 errors when upgrading php7. For more information, please follow other related articles on the PHP Chinese website!