Update 30/05/2015 new version : nethserver-php-scl-1.0.1-2
I need your review on a module based on the php software collection. In other word the purpose it to let the sysadmin decides which version he will use inside an Ibay and/or for the whole server.
All php versions come from the remi repository and are installed in the /opt. I provide a rpm to enable some part of the remi repository because in the contrary case you could upgrade mysql* and php*. This will not be a good thing
Therefore if you want to update rpm from remi-phpscl, you simply need to do
yum update --enablerepo=remi-phpscl
All php rpm must be installed directly from Remi by a yum command line.
For example if you want to display all available rpm for the software collection
yum list available php* --disablerepo=* --enablerepo=remi-phpscl
If you want to install a rpm for all php version (php54,php55,php56)
yum install php54-php-dba php55-php-dba php56-php-dba --enablerepo=remi-phpscl
Each day, based on a cron job, the rpm looks after updates and send an email if updates are found, to the ‘admin’ user.
Normally the Panel should be complete and you should not use the command Line, if you think that we can enhance the PHP settings by bringing more options, please ask.
the settings are in two place
in the Shared Folder panel
Here you can decide which version you will use for the Ibay (default means the php version of Apache). Since we use a CGI script to handle the php version, you won’t be able to trigger php settings with the module nethserver-phpsettings, you have to adjust settings by the relevant php.ini.
I wanted to code something cool so all settings are not db command based…I bring a panel…you must go to the ‘Php Settings’ in the configuration panel.
In the Php Settings Panel
Here you can decide which version you want to use for the whole server. When Apache is the Handler of Php then you can trigger php settings with my other module nethserver-phpsettings.
In other word if you want to use the module nethserver-phpsettings and you need a specific version of Php, you must use that version for the whole Server. Of course you can go back to the default version if something goes wrong with an old web application.
In other parts of the Panel you can adjust php settings to all different versions of Php, even the Php53 default centos version.
yum install http://mirror.de-labrusse.fr/nethserver/nethserver-php-scl/nethserver-remi-phpscl-1.0.0-1.ns6.sdl.noarch.rpm
yum install http://mirror.de-labrusse.fr/nethserver/nethserver-php-scl/nethserver-php-scl-1.0.4-1.ns6.sdl.x86_64.rpm --enablerepo=remi-phpscl
create several Ibays (at least 4) and inside put a phpinfo.php. In fact you should look if apache can load each version of php, then if you can set each version of Php inside the Ibay. Of course you can have a version of php different between apache and an ibay or apache and all ibays (each ibays can have its own version)
[root@nethserver-dev ~]# cat /var/lib/nethserver/ibay/piwigo/phpinfo.php <?php phpinfo(); ?>
use the browser to diplay each phpinfo in your browser (http://IP_OR_HOSTNAME/IBAYNAME/phpinfo.php) and play with options and php version
Server API Apache 2.0 Handler <------apache is the handler of the php
Server API CGI/FastCGI <----- php is used as a cgi script
These options are modified by my panel
allow_url_fopen max_execution_time max_file_uploads max_input_time memory_limit post_max_size upload_max_filesize