update debian/install_apache.sh: add build checks