Changes

From SME Server
Jump to navigationJump to search
no edit summary
Line 10: Line 10:     
=== Description ===
 
=== Description ===
The purpose of the contribs is to install PHP54, PHP55, PHP56 alongside the default php version installed with SME9 without having to remove or change the default php installation. We use the rpms from the [[remi-safe]] repository which are in fact the same as those on the official [https://www.softwarecollections.org/en/ official web site], but have the advantage of providing more choices.
+
The purpose of the contribs is to install PHP54, PHP55, PHP56, PHP70, PHP71 alongside the default php version installed with SME9 without having to remove or change the default php installation. We use the rpms from the [[remi-safe]] repository which are in fact the same as those on the official [https://www.softwarecollections.org/en/ official web site], but have the advantage of providing more choices.
    
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.
Line 23: Line 23:  
the minimal installation can simply be done doing :
 
the minimal installation can simply be done doing :
 
  yum install smeserver-php-scl --enablerepo=smecontribs
 
  yum install smeserver-php-scl --enablerepo=smecontribs
 +
 +
for php7, this is still in testing:
 +
yum install smeserver-php-scl --enablerepo=smecontribs,smetest
    
If you do not want to restart your server
 
If you do not want to restart your server
Line 66: Line 69:  
If you use scl_php56/scl_php54/scl_php55 for the whole server, You can add also specific values (MemoryLimit,UpMaxFileSize,PostMaxSize,MaxExecTime,AllowUrlfOpen) per Ibay (either by db command or by the contrib smeserver-webhosting) because apache is the handler of php.  
 
If you use scl_php56/scl_php54/scl_php55 for the whole server, You can add also specific values (MemoryLimit,UpMaxFileSize,PostMaxSize,MaxExecTime,AllowUrlfOpen) per Ibay (either by db command or by the contrib smeserver-webhosting) because apache is the handler of php.  
   −
If you use scl_php56,scl_php55,scl_php54 per ibay, then you use php with a cgi application and you cannot add specific setting to apache with php_admin_flag or php_admin_value. Then if you want to add a specific setting like in [[PHP_Software_Collections#Usage|Usage]] you must use it for the whole php applications by the command you can find in [[PHP_Software_Collections#Usage|Usage]]
+
If you use scl_php71,scl_php70,scl_php56,scl_php55,scl_php54 per ibay, then you use php with a cgi application and you cannot add specific setting to apache with php_admin_flag or php_admin_value. Then if you want to add a specific setting like in [[PHP_Software_Collections#Usage|Usage]] you must use it for the whole php applications by the command you can find in [[PHP_Software_Collections#Usage|Usage]]
    
It is the limitation of php-scl
 
It is the limitation of php-scl
Line 115: Line 118:  
     UploadMaxFilesize=10M
 
     UploadMaxFilesize=10M
    +
[root@sme9b3dev64 ~]# config show php70
 +
php70=configuration
 +
    AllowUrlFopen=Off      #(On/Off)
 +
    MaxExecutionTime=30
 +
    MaxFileUpload=20
 +
    MaxInputTime=60
 +
    MemoryLimit=128M
 +
    PhpModule=disabled    #(enabled/disabled)
 +
    PostMaxSize=20M
 +
    UploadMaxFilesize=10M
 +
 +
[root@sme9b3dev64 ~]# config show php71
 +
php71=configuration
 +
    AllowUrlFopen=Off      #(On/Off)
 +
    MaxExecutionTime=30
 +
    MaxFileUpload=20
 +
    MaxInputTime=60
 +
    MemoryLimit=128M
 +
    PhpModule=disabled    #(enabled/disabled)
 +
    PostMaxSize=20M
 +
    UploadMaxFilesize=10M
    
in fact you can choose manually (think about you have a panel for that) which version you want to use in the phpmod of apache (only one version can be used), for example
 
in fact you can choose manually (think about you have a panel for that) which version you want to use in the phpmod of apache (only one version can be used), for example
Line 141: Line 165:     
For example if you want to install the php rpm for pgsql
 
For example if you want to install the php rpm for pgsql
  yum install php54-php-pgsql php55-php-pgsql php56-php-pgsql --enablerepo=remi-safe
+
  yum install php54-php-pgsql php55-php-pgsql php56-php-pgsql php70-php-pgsql php71-php-pgsql --enablerepo=remi-safe
    
=== Update ===
 
=== Update ===
Line 148: Line 172:     
#If smecontribs is not enabled, you will need to issuethe following:
 
#If smecontribs is not enabled, you will need to issuethe following:
  yum update smeserver-php-scl php54* php55* php56* --enablerepo=smecontribs
+
  yum update smeserver-php-scl php54* php55* php56* php70* php71*--enablerepo=smecontribs
    
====Advanced install====
 
====Advanced install====
Line 156: Line 180:  
regularly you should check for updates and apply them by doing so:
 
regularly you should check for updates and apply them by doing so:
   −
  yum update smeserver-php-scl php54* php55* php56* --enablerepo=smecontribs,remi-safe,epel
+
  yum update smeserver-php-scl php54* php55* php56* php70* php71*  --enablerepo=smecontribs,remi-safe,epel
    
=== Uninstall ===
 
=== Uninstall ===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,254

edits

Navigation menu