Home>Article>Backend Development> How to solve problems such as 500 errors when upgrading php7

How to solve problems such as 500 errors when upgrading php7

藏色散人
藏色散人 Original
2020-08-21 10:38:48 3732browse

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.

How to solve problems such as 500 errors when upgrading php7

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn