Question

Centos 8 LEMP: PHP-FPM install error

I’m following the directions and running into an issue on the Centos 8 LEMP tutorial: https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-8

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.

KFSys
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

alexdo
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

Hello,

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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.