It's really strange, only possible by removing them or using a buggy script, which deletes some folders recursively...
PS: I think you've done some modifications in apache2. For you it would be easier just to purge apache2 and then rerun the installer...
PS²: Which OS you're using? Such basic informations are also missing in your thread...