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

What to do if php fileinfo installation error occurs

藏色散人
藏色散人Original
2022-01-18 09:57:532617browse

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

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!

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