Home > Backend Development > PHP Problem > What to do if php fileinfo installation error occurs

What to do if php fileinfo installation error occurs

藏色散人
Release: 2023-03-14 20:42:02
Original
2665 people have browsed it

Solution to php fileinfo installation error: 1. Create a virtual memory; 2. Create a swap space with a size of 1G and set it to start at boot; 3. Re-enter the pagoda panel and click to install the fileinfo extension That’s it.

What to do if php fileinfo installation error occurs

## The operating environment of this article: Windows 7 system, Pagoda Panel 7.4. Version 0, DELL G3 computer

What should I do if I get an error when installing php fileinfo?

Pagoda panel fileinfo extension installation failed?

Solution:

Create a virtual memory. When insufficient memory is encountered during the installation of fileinfo, the virtual memory will be automatically used.

Create a swap space with a size of 1G and set it to start at boot.


What to do if php fileinfo installation error occurs

dd if=/dev/zero of=/swap bs=1024 count=1M
 mkswap /swap
 swapon /swap
 echo “/swap swap swap sw 0 0” >> /etc/fstab
Copy after login

After the code execution is completed, we can re-enter the pagoda panel, click to install the fileinfo extension, and then the installation can be successful.


Recommended study: "

PHP Video Tutorial"

The above is the detailed content of What to do if php fileinfo installation error occurs. 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