Muti-PHP version support (incl. webserver)

Planning to switch my work setup from Debian and never liked Arch(btw) :wink: .
My main hurdle is package manager switch being apt user for decade(s).

As I frequently need to run different PHP versions (at the same time and under webserver – legacy code …) and don’t want to lose sanity setting up Docker chain +XDEBUG for them I just have multiple versions installed and call them directly as php5.4 | php 7.2 | php 8.4 <foo> and use different sockets for fastcgi.

apt/ppa has ***** The main PPA for supported PHP versions with many PECL ext... : Ondřej Surý repo for that, is there is anything similar for OM? It won’t be a showstopper as I can always go the source route (ansible) if nothing else exists, but it will be nice if I can skip that part.

1 Like

A fellow web dev supporting legacy code! I too am in this same situation. I came from Debian and have been using the Ondřej Surý repo for the multiple versions, and would love to know if there is something similar as well. So far in my searching there is not. We might be able to request getting multiple php versions into the OM repos… my next step was to see what that would take.

If you don’t mind could you elaborate on this process or send me a link to read? I’ve not done this and am curious. Thanks!

so from the little I’m been using OM for a webserver(apache), I have been using source, most likely we will have to setup a repo in the feature to have multiple version in one place so we can use dnf to install them.

1 Like

As Ubuntu and Debian user I also enjoyed Ondřej’s work. But I had a few strange server setups where that was impossible. GitHub - geerlingguy/ansible-role-php: Ansible Role - PHP has option to build from source and I was using Ansible to manage them anyway. It’s nothing special, just automates pulling the source, configure and compile just like one may do manually.

Don’t have any knowledge about how dnf work but for anyone implementing this please do not do what homebrew did on OSX and overwrite PHP versions. They work just fine as /usr/bin/phpX.Y including multiple fcgi server processes.

1 Like

This or pkgs[dot]org will probably be your best resource:

https://abf.openmandriva.org/search?utf8=āœ“&query=php

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.