PHP 7.0 as Software Collection
+
Par Remi le mercredi 25 mars 2015, 18:57 - HowTo - Lien permanent
RPM of upcoming major version of PHP 7.0, are available in remi repository for Fedora 20, 21, 22 and Enterprise Linux 6, 7 (RHEL, CentOS, ...) in a fresh new Software Collection (php70) allowing its installation beside the system version.
As I strongly believe in SCL potential to provide a simple way to allow installation of various versions simultaneously, and as I think it is useful to offer this feature to allow developers to test their applications, to allow sysadmin to prepare a migration or simply to use this version for some specific application, I decide to create this new SCL.
Installation :
yum install php70
To be noticed:
- the SCL is independant from the system, and doesn't alter it
- this SCL is available in
remi-testremi-safe repository - installation is under the /opt/remi tree
- the Apache module, php70-php, is available, but of course, only one mod_php can be used (so you have to disable or uninstall any other, the one provided by the default "php" package still have priority)
- the FPM service (php70-php-fpm) is available, it listens on default port 9000, so you have to change the configuration if you want to use various FPM services simultaneously.
- the php70 command give a simple access to this new version, however the scl command is still the recommended way (or the module command).
- for now, the collection provides 7.0.0-dev, but alpha/beta version should be released soon
- more PECL extensions will be progressively also available
- only x86_64, no plan for other arch.
Also read other entries about SCL.
$ scl enable php70 'php -v' PHP 7.0.0-dev (cli) (built: Mar 25 2015 14:40:01) Copyright (c) 1997-2015 The PHP Group Zend Engine v3.0.0-dev, Copyright (c) 1998-2015 Zend Technologies with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2015, by Zend Technologies
As always, your feedback is welcome, a SCL dedicated forum is open.
Commentaires
Don't search for ereg, mssql, sybase_ct or mysql extensions, they have been removed from PHP. We'll see if they will be available on PECL.
For now, there is only a few compatible extensions, the PECL extensions RPM status page show those available in my repository, the gophp7 wiki try to follow upstream work in progress.
Version 7.0.0alpha1 is released
Version 7.0.0alpha2 is released.
warning: the directories layout have changed since previous packages:
Version 7.0.0beta1 is released.
SCL moved to remi-safe repository