# eselect php set apache2 1 ln: target `/usr/lib/apache2/modules/' is not a directory: No such file or directory !!! Error: Failed to set symlink for libphp5.so exiting # mkdir /usr/lib/apache2/modules # eselect php set apache2 1 You have to run `/etc/init.d/apache2 restart' for the changes to take effect This happened on a system with www-servers/apache[static] and no other apache modules installed.
we now "keepdir /usr/lib/apache2/modules" for that reason. not sure this is the right way, but it's a working way at least ;)