You are not logged in.
Pages: 1
My question relates to the correct way to downgrade the PHP package, but I suspect the underlying issue is just surrounding the correct use of Pacman.
I built a LAMP server and everything appeared to work as it should. Then I found out that the web application software I wanted to use required PHP v5.5. As I had build my LAMP server from the latest packages, my version is 7.1.
Shouldn't be a problem; PHP 5.5 is available on AUR. So, I download and build the packages. As expected, I am left with the .xz packages ready to install. I select the modules I'd like and run pacman.
sudo pacman -U php55-5.5.38-2-x86_64.pkg.tar.xz
Pacman does it's thing and installs PHP and my selected modules. Everything seemed Ok, so I checked my installed version.
php -v
PHP still reports 7.1. So, I restart my http service, and ultimately the whole box. But still I am on version 7.1.
After a little digging around, I find I have PHP installed twice. I can query the two versions...
php -v
php55 -v
They respond with their predicted version numbers. So, in short, I've messed this up somewhere. I'd just like the one instance, named PHP, that is version 5.5. What is the correct way of doing this?
Regards,
L.
Last edited by Lightman (2017-04-11 06:53:26)
Offline
You haven't messed up, you just haven't removed the 'php' package. You will also need to configure the application to use the php55 installation.
Also, to clarify: you are not downgrading in this instance, you are installing another version of an application side-by-side.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Arch is a rolling release, so you will always have the newest stable versions in the official repos.
You can additionally install older versions of some software from the unofficial AUR. It would then be up to you to configure your application to use the older version, eg. like so.
Offline
Thanks guys. I followed the blog you posted and everything works as it should again.
Offline
Then please edit your first post and add [SOLVED] to the beginning of the title.
Be aware of my Newbie Powers
Offline
Pages: 1