Skip to content
Advertisement

Install php8.1 and librenms on amazon linux 2 with remi’s repository

I install php8.1 following on this website

https://computingforgeeks.com/how-to-install-php-8-on-amazon-linux/

librenms on this website

https://docs.librenms.org/Installation/Installation-CentOS-7-Nginx/


And it did show the version with this command

JavaScript

but it will show “php command not found” on this command

JavaScript

after that I wanna install librenms and I follow the instructions on the librenms-documents and type this installation command

JavaScript

the error will come out like this

JavaScript

If I using the argument “–skip-broken” and install again,it will made php8.1 to php 8.0

And if I using the command below,it will also downgrade the version of php

JavaScript

I just want it to install normally and stay in the version of php8.1.

Also,want it to show the version 8.1 with the command

JavaScript

how could I do??

Advertisement

Answer

Don’t follow random documentation, instead follow official repository instructions from the Wizard.

It seems you have a repository priority issue between amzn and remi.

See yum documentation to set a proper priority to wanted PHP provider.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement