After I had installed apache and php-5.1.6-r6, I unmerged php again. As I tried to start apache, it gave an error. Reproducible: Always Steps to Reproduce: 1. Emerge apache and php 2. Unmerge php 3. Try to start apache Actual Results: # /etc/init.d/apache2 start * Apache2 has detected a syntax error in your configuration files: Syntax error on line 5 of /etc/apache2/modules.d/70_mod_php5.conf: Cannot load /usr/lib/apache2/modules/libphp5.so into server: /usr/lib/apache2/modules/libphp5.so: cannot open shared object file: No such file or directory Expected Results: Should have started apache without errors. This is trivial, but I think /etc/apache2/modules.d/70_mod_php5.conf should be removed or moved as you unmerge the php package.
Can't; it's how CONFIG_PROTECT works. If you haven't modified it, it will be removed with recent portage-2.1.2 version, otherwise, will just stay there. *** This bug has been marked as a duplicate of bug 8423 ***