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.

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

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.