if [ "$1" = "remove" ]; then update-alternatives --remove php-cgi /usr/bin/php5-cgi update-alternatives --remove php-cgi-bin /usr/lib/cgi-bin/php5 fi