Centos 8 LEMP: PHP-FPM install error

I’m following the directions and running into an issue on the Centos 8 LEMP tutorial:

Any help would be greatly appreciated.

After running the following command (sudo dnf install php-fpm php-mysqlnd) I receive the error

Running transaction Preparing : 1/1 Installing : php-fpm-7.4.8-2.el8.remi.x86_64 1/1 Error unpacking rpm package php-fpm-7.4.8-2.el8.remi.x86_64 Verifying : php-fpm-7.4.8-2.el8.remi.x86_64 1/1

**Failed: php-fpm-7.4.8-2.el8.remi.x86_64

Error: Transaction failed**

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
July 26, 2020
Accepted Answer

Hi @chipsterz,

Have you tried doing a System Upgrade beforehand? You can check for whether software updates are available with the following command:

sudo dnf check-update

You can do a minimal software update with the following command:

sudo dnf upgrade-minimal

After that check if the issue is still going to be experienced.

Regards, KFSys

Site Moderator
Site Moderator badge
February 20, 2022

Hello there,

In addition to what has already been mentioned, I wanted to point out that CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021.

I would strongly recommend planning either migration to another OS like Debian or Ubuntu, or upgrading to CentOS Stream.

I personally believe that the safest way to do this is to follow these steps here:

  • Spin up a new Droplet with the desired OS
  • Install the necessary services (webserver, sql server, etc.)
  • After that using rsync for example copy over your files and migrate your databases
  • Then test your website and server fully to make sure that everything is working as expected
  • Finally, change your DNS to point to the new Droplet

Regards, Alex


Thanks for the replies. Much appreciated. You were both correct.

Updating was important to fix the error.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel