update debian/install_php.sh: add build checks