Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: tolistim on March 12, 2019, 03:47:35 PM
-
I need to update the php version from the 5.3 default to the newer 7.3 version in my Primary iBay. I've already performed the installation and have the php-scl available. However, since I only have the Primary iBay, I can't find a way to change its php version since Primary is not listed in the php-scl list.
Can I change this via the Terminal?
EDIT - I do also have the "I-bays - Web Hosting" scl installed. It shows the Primary iBay, but does not offer any options.
-
It's not possible to upgrade the Primary ibay to use php-scl.
[edit] See ReetP's post (https://forums.contribs.org/index.php/topic,53937.msg281193.html#msg281193) below.
However, you can make the default host URL serve a different i-bay, which can then be set to use php-scl.
Here's a post describing just this solution in order to run Wordpress at the root of the main domain:
https://forums.contribs.org/index.php/topic,53719.msg279608.html#msg279608
-
It's not possible to upgrade the Primary ibay to use php-scl.
If you use the sme contrib you can run PHP SCL globally which will include the Primary Ibay.
https://wiki.contribs.org/PHP_Software_Collections
smeserver-php-scl
Go to server-manager, PHP-SCL Versions
Select PHP-mod version button
Select your version and Save.
This will apply to ALL ibays. (Note the minimum recommended/supported version is now PHP 7.1)
Add a test.php file to Primary/html containing this:
<?php
// version only
$version = phpversion();
print $version;
// Or use this for the full settings
phpinfo();
?>
Then try:
http://your.server.com/test.php
What you CAN'T do is set a PHP version for JUST the Primary ibay, at least not from the server-manager panel.
Also note other limitations on using PHP per ibay a the wiki page.