Announcement

Collapse
No announcement yet.

cl-selector or selectorctl to switch PHP version of /usr/bin/php AND /usr/bin/php-cgi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • cl-selector or selectorctl to switch PHP version of /usr/bin/php AND /usr/bin/php-cgi

    We are using selectorctl to select the PHP version for each of our user / client on a server in command line.

    But the problem is that it put php-cgi in /usr/bin/php, so some command like composer does not work since PHP is not the PHP CLI version !

    We have try to change /etc/cl.selector/selector.conf

    -- php 7.1 7.1.5 /opt/alt/php71/usr/bin/php-cgi
    ++ php 7.1 7.1.5 /opt/alt/php71/usr/bin/php

    Now the PHP is the PHP-CLI version, but the /usr/bin/php-cgi bin the in client Cage is not PHP 7.1, its still an old PHP 5.x .

    How can selectorctl update / put the good BIN of php and php-cgi in the cage ?

    /etc/cl.selector/selector.conf already contain

    php-cgi 7.1 7.1.5 /opt/alt/php71/usr/bin/php-cgi

    So I was thinking php-cgi should update to the correct version in the cage ?
Working...
X