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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Chinese version
Chinese version, very easy to use

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Notepad++7.3.1
Easy-to-use and free code editor