optimize apache2 installation script