move apt dependencies to modules which require them
ensure PHP code installs packages and changes directory permissions