Refactor apache2 and php modules