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

How to solve problems such as 500 errors when upgrading php7

藏色散人
Release: 2023-02-17 17:34:02
Original
3890 people have browsed it

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()
Copy after login

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template