On 01/07/2016 07:52 PM, Marc Schiffbauer wrote: >> >> 3. I could try to hack some magic into eselect-php to detect whether or >> not you have -DPHP5 set. Something simple, like grepping /etc/conf.d >> /apache2 for "PHP5". In that case we could omit a notice. >> This one simultaneously makes the most sense and feels like the >> biggest hack. > > +1 for 3. > > You can remove the hack in a year or so. I think most important is a > good user experience. If this requires a hack because the design of the > tools give you no other choice than be it. >
Done in recent eselect-php: $ sudo eselect php set apache2 1 !!! Warning: The apache2 configuration has changed in this !!! Warning: version of eselect-php. You should define "-D PHP" !!! Warning: and not "-D PHP5" for apache. The module is now !!! Warning: loaded by 70_mod_php.conf (was 70_mod_php5.conf). !!! Warning: After you have changed "-D PHP5" to "-D PHP", !!! Warning: you should remove 70_mod_php5.conf to eliminate !!! Warning: this warning. Until you have done so, your eselect !!! Warning: choices for apache2 will have no effect. Please restart apache for the changes to take effect. Users may get that warning more than once if we reinstall 70_mod_php5.conf, but it's harmless and less hacky than grepping /etc/conf.d/apache2. I think we can forego the news item? Thanks for the suggestions.
