[Bug 224409] Support multiple php version

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Dec 17 20:37:18 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224409

            Bug ID: 224409
           Summary: Support multiple php version
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://forums.freebsd.org/threads/59624/#post-355509
                OS: Any
            Status: New
          Keywords: feature
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs at FreeBSD.org
          Reporter: indeax at yandex.com

Actually, it's not possible to install multiple php versions in an easy way
with compiled packages (nor ports). All them use the same binary and config
files and there is conflicts on package system.

This can be doable with some changes on compile options and some modifications
on init scripts (for php-fpm daemon). A good example is actual debian way to
implement it (and extra packages from https://deb.sury.org/). For example:

PHP 5.6
binary: /usr/bin/php56
Config: /etc/php/5.6/{apache2|fpm|cgi}/

PHP 7.0
binary: /usr/bin/php70
Config: /etc/php/7.0/{apache2|fpm|cgi}/

To retain compatibility with old config files and have a principal php version
for the system an option could be create a new package/port called
"php-select-version", a simple script that detect current installed php
versions and let you choose the principal one, then create necessary symlinks
on binary and conf directories, something like "alternatives" on debian world
(https://wiki.debian.org/DebianAlternatives) but a lot more simple and
specific.

Thanks.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list