#!/bin/sh set -e if [ "$1" != "remove" -a "$1" != "purge" ]; then exit 0 fi if [ -e /etc/apache2/apache2.conf ]; then if [ -e /etc/apache2/mods-enabled/php5.load ] && [ "$1" != "purge" ]; then # set a flag to remember the original state # useful when reinstalling the same version. touch /etc/php5/apache2/.start fi a2dismod php5 || true fi exit 0