update debian/install_php.sh: fix pre-install libs check and order