Koozali.org: home of the SME Server

Is php version per ibay supported? seems to be implied by rls notes and roadmap

Offline rossbcan

  • 16
  • +0/-0
Folks;

I have a few legacy sites requiring php5.4

package smeserver-php provides multiple php versions
https://bugs.contribs.org/show_bug.cgi?id=10335

- If so (moving php-scl to core a GREAT idea), how do I configure an ibay for a particular php version?
- will this ultimately be incorporated into sme-server GUI?
- I am sure solving this will accelerate user sme updates to V10.

I may be able to help with the work, or at least a howto if required. Will need some assistance getting started and understanding what needs to be done. May need Rocket Chat credentials.

Regards;
Bill

Offline Jean-Philippe Pialasse

  • *
  • 2,762
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Hi
as answered in your other post, yes you can.

just do

Code: [Select]
db accounts setprop myibay PHPVersion ""
signal-event ibay-modify myibay


and your ibay myibay will use php54.
and contrary to fpm with sme9, fpm allows you to set per ibay php settings. ie upload size etc. 
You have access to any php version from 5.4 to 8.0. Just remove the dot between major release and subrelease.

As John would mention 5.4 has long term support offerd by Red Hat, however, avoid as possible other unsuported php versions.


For the GUI, you will have the contrib smeserver-webhosting. I was needding to fix a few things in the smeserver-php (mostly properties migrations) before letting a go on this contribs and make some improvements.

You will have access to per ibay php version setting and per ibay php options settings.
also I am looking at implementing a panel to set the default php version (currently PHP7.3, but with beta2 /RC1 we will switch to 7.4 as default, unless you set yours to another)


edit : fix the syntax.
php 5.4 is base fpm. we need to fill an empty string to have the template use php-fpm for 5.4

if we remove the PHPVersion property the. it uses php74-php-fpm.
empty string is not equivalent to nor defined here. 
« Last Edit: March 16, 2021, 11:03:21 PM by Jean-Philippe Pialasse »

Offline rossbcan

  • 16
  • +0/-0
Further info:

Need to update smeserver-php:
yum install smeserver-php --enablerepo=smeupdates-testing

and:
db accounts setprop myibay PHPVersion "" #select php54
prop PHPVersion not set #select php7x