I did emerge dev-lang/php with apache2 use flag and can't eselect the apache2 module. I also have 5.4 and 5.6 installed with same use flags. Affects the final 7.0 ebuild and was the same problem with the RCs. # eselect php list apache2 [1] php5.4 [2] php5.6 * # eselect php list cli [1] php5.4 [2] php5.6 * [3] php7.0 # emerge php -pv ... [ebuild R #] dev-lang/php-7.0.0:7.0::gentoo USE="apache2 bzip2 calendar cli crypt ctype curl debug fileinfo filter flatfile ftp gd gdbm hash iconv imap ipv6 json ldap mhash mysql mysqli nls odbc opcache pdo phar posix postgres readline session simplexml soap sqlite ssl systemd threads tokenizer truetype unicode xml xmlreader xmlrpc xmlwriter xslt zip zlib -bcmath -berkdb -cdb -cgi -cjk -embed -enchant -exif (-firebird) -fpm (-frontbase) -gmp -inifile -intl -iodbc -kerberos -ldap-sasl -libedit -oci8-instant-client -pcntl -qdbm -recode (-selinux) -sharedmem -snmp -sockets -spell -sysvipc -tidy -vpx -wddx -xpm" 0 KiB Reproducible: Always Steps to Reproduce: 1. emerge dev-lang/php:7.0 with USE "apache2" 2. try eselect php set apache2 php7.0
It turns out to be a problem of eselect-php and maybe apache2. When you manually symlink /usr/lib64/apache2/modules/libphp5.so -> /usr/lib64/php7.0/apache2/libphp7.so it's working.
This is.. in progress. I haven't had a chance to test Brian's patch (see the duplicate bug) but I can probably do it tonight. If you don't mind, try it out and give it a thumbs up/down. Once we know it works we just have to push out a new version of eselect-php. *** This bug has been marked as a duplicate of bug 552156 ***