I think I misinterpreted those lines: > if ! a2enmod -q log_config; then > a2enmod log_config > fi I see now that if the module is not already enabled, the script won't touch it. Sorry...<sheepish look>