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 == |
| | | |
Line 31: |
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 208: |
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 317: |
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 349: |
Line 377: |
| {{#smechangelog: smeserver-php-scl}} | | {{#smechangelog: smeserver-php-scl}} |
| | | |
− | [[Category: Contrib]] | + | [[Category: Deprecated_Contrib]] |
| [[Category:Software Collections]] | | [[Category:Software Collections]] |