I have critical legacy software that will certainly break with PHP 7.
I saw the documentation on the wiki:
Running multiple versions of PHP
https://wiki.gentoo.org/wiki/PHP#Runnin ... ons_of_PHP
I added to make.conf:
Code: Select all
PHP_TARGETS="php5-6 php7-0" Code: Select all
[ebuild NS ] virtual/httpd-php-7.0 [5.6]
[ebuild NS ] dev-lang/php-7.0.15 [5.6.30] USE="acl apache2 berkdb bzip2 cjk cli crypt ctype curl exif fileinfo filter fpm gd gdbm hash iconv ipv6 json ldap mysql mysqli nls opcache phar posix readline session simplexml spell ssl tokenizer truetype unicode xml xslt zlib -bcmath -calendar -cdb -cgi -coverage -debug -embed -enchant (-firebird) -flatfile -ftp -gmp -imap -inifile -intl -iodbc -kerberos -ldap-sasl -libedit (-libressl) -mhash -mssql -oci8-instant-client -odbc -pcntl -pdo -phpdbg -postgres -qdbm -recode (-selinux) -sharedmem -snmp -soap -sockets -sqlite -systemd -sysvipc -threads -tidy -wddx -webp -xmlreader -xmlrpc -xmlwriter -xpm -zip"
[ebuild R ] dev-php/pecl-geoip-1.1.1-r2 PHP_TARGETS="php7-0*"
Code: Select all
[ebuild NS ] dev-libs/glib-2.4.7
You already have a version of glib installed, but a 'new' version in a different SLOT is available.Does "[ebuild NS ] dev-lang/php-7.0.15 [5.6.30] " actually mean that PHP 7.0 will be installed alongside 5.6?
I am safe to go?
I guess then I use eselect php list apache2 to select the php version to run with Apache.
Can't apache run with both, with the exact handler to be used being configured in the vhosts settings?

