Changes

From SME Server
Jump to navigationJump to search
Line 1: Line 1:  +
=== Requirements ===
 +
{{Warning box|'''This page is ONLY for SME Server 9 64 bit''' which is now EOL and deprecated. Please upgrade '''urgently''' to SME Server v10}}
 +
{{Warning box|Even if you try this on an old v9 installation you may well break your server. Upgrade immediately}}
 +
{{Warning box|Do '''NOT''' try this on a v10 server}}
 +
 +
 
{{Languages}}
 
{{Languages}}
 
{{Level|Easy|The instructions for installing and using php scl can be followed by a beginner, changing options requires a basic knowledge of linux.}}
 
{{Level|Easy|The instructions for installing and using php scl can be followed by a beginner, changing options requires a basic knowledge of linux.}}
 
{{usefulnote}}
 
{{usefulnote}}
 +
 
== PHP Software Collections for SME Server ==
 
== PHP Software Collections for SME Server ==
   −
{{Warning box|'''If you enable PHP 7.x globally you may get errors trying to access Webmail and possibly the Server-Manager
+
{{warning box| Please check the following site for notes on EOL for different versions of PHP.
 +
 
 +
As of May 2019 the minimum supported version of PHP is 7.1 but only for security updates until 30th November 2019
 +
 
 +
https://www.php.net/supported-versions.php
 +
 
 +
Note that the default installed version of PHP on Koozali SME is 5.3.3 and that is supported for security updates by RedHat only until the distro goes EOL. However, it may not be supported by applications.}}
 +
 
 +
{{Warning box|'''With php-scl contrib older than  0.4-22 : If you enable PHP 7.x globally you may get errors trying to access Webmail and possibly some panels of the Server-Manager
 
The highest PHP version that will work with Horde 3.x is PHP 5.6
 
The highest PHP version that will work with Horde 3.x is PHP 5.6
    
To use PHP 7.x globally you will need to update to Horde 5.x (see Bugs/wiki)
 
To use PHP 7.x globally you will need to update to Horde 5.x (see Bugs/wiki)
   −
If your Server Manager or Webmail are blocked please see below for instructions on how to get them working
+
If panels depending of php of your Server Manager or Webmail are blocked please see below for instructions on how to get them working
'''}}
+
'''
 +
 
 +
Simply updating to last version of php-scl contrib will solve this issue.}}
    
=== Maintainer ===
 
=== Maintainer ===
Line 21: Line 38:     
All PHP rpms are installed in /opt , this prevents any interference or conflict with the default install of PHP.
 
All PHP rpms are installed in /opt , this prevents any interference or conflict with the default install of PHP.
  −
=== Requirements ===
  −
{{Warning box|'''Only for SME Server 9 64 bit'''}}
      
=== Installation ===
 
=== Installation ===
Line 198: Line 212:  
If you need to modify the php.ini you can add a custom template.
 
If you need to modify the php.ini you can add a custom template.
   −
Make a new directory here and add you template fragment:
+
Make a new directory here and add your template fragment:
   −
<syntaxhighlight>
+
<syntaxhighlight lang="bash" >
 
/etc/e-smith/templates-custom/opt/remi/php{$ver}/root/etc/php.ini
 
/etc/e-smith/templates-custom/opt/remi/php{$ver}/root/etc/php.ini
 
</syntaxhighlight>
 
</syntaxhighlight>
    
===Debug===
 
===Debug===
 +
 +
{{Warning box| This was for v9. v10 is different and this may break your installation
 +
Some notes here:
 +
https://wiki.koozali.org/Koozali_SME_Server_Debugging#Multiple_machine_debug_proxy}}
    
====Setup====
 
====Setup====
Line 263: Line 281:  
     $OUT .= "$debug";
 
     $OUT .= "$debug";
 
  }
 
  }
 +
; If using a debug proxy on the server for multi users you need settings like this
 +
; If you have a single user you can set remote host to their IP
 
  xdebug.remote_host                    = 127.0.0.1
 
  xdebug.remote_host                    = 127.0.0.1
 
  xdebug.remote_port                    = 9000
 
  xdebug.remote_port                    = 9000
Line 305: Line 325:  
  https://test.myserver.com/TestFile.php?XDEBUG_SESSION_START=users
 
  https://test.myserver.com/TestFile.php?XDEBUG_SESSION_START=users
   −
===Cannot access Webmail or Server Manager===
+
===Cannot access Webmail ===
 +
 
 +
In previous version you could have issue accessing webmail if php7 is selected. We have added a process to set php cgi to php56 in case a php7 version is selected globally. Unfortunately this would create a lot of warnings in the logs.
 +
 
 +
you could avoid this by doing:
 +
<syntaxhighlight lang="bash">
 +
mkdir -p /etc/e-smith/templates-custom/home/httpd/html/horde/config/conf.php/
 +
cp -a /etc/e-smith/templates/home/httpd/html/horde/config/conf.php/100GeneralSettings /etc/e-smith/templates-custom/home/httpd/html/horde/config/conf.php/
 +
 
 +
#then add this in the file
 +
if (defined('E_STRICT')) \{
 +
  $conf['debug_level'] &=  ~E_STRICT;
 +
\}
 +
 
 +
</syntaxhighlight>
 +
and finally, run :
 +
<syntaxhighlight  lang="bash" >
 +
expand-template /home/httpd/html/horde/lib/core.php
 +
</syntaxhighlight>
 +
 
 +
this will reduce the amount of warning, but there will be still some because of script called before the conf file
   −
If you find that you can not access Webmail or server manager then you can disable PHP SCL as follows:
+
in older version if you find that you can not access Webmail then you can disable PHP SCL as follows:
    
Global
 
Global
Line 337: Line 377:  
{{#smechangelog: smeserver-php-scl}}
 
{{#smechangelog: smeserver-php-scl}}
   −
[[Category: Contrib]]
+
[[Category: Deprecated_Contrib]]
 
[[Category:Software Collections]]
 
[[Category:Software Collections]]

Navigation menu