Raise warning if apache2 is not installed

Raise warning if apache2 is not installed and add missing dependencies to the apt-get install line.