3 ms·
Wow, another Gentoo user! One great thing about Gentoo is that you can have multiple versions of packages like PHP, so you can run legacy and the newest, at th
by timw4mail 5y ago
Wow, another Gentoo user!
One great thing about Gentoo is that you can have multiple versions of packages like PHP, so you can run legacy and the newest, at the same time, on the same system, without having to deal with docker.
- squiggleblaz 5y agoHow? Is it because you compile it yourself so it's easy to specify an alternative prefix? How easy is it to use the version you want? (e.g. working on two projects simultaneously - say fixing a bug on production while otherwise working on compatibility with the new version).
- timw4mail 5y agoThe compiled binaries have a suffix, and you are able to select which binary you want for the default. So, `php` is set to say, `php74` or `php8`. The suffix also applies to the config files and init scripts. As far as running two versions on the same webserver, you just have to set up the config for each version to be on different ports or sockets. Also, to clarify a bit, this is all using the Gentoo package manager, so you do not have to manually compile the packages, or manually create the symlinks.