tMr so did you just remove the following lines from the install script and manually install the remaining packages?
Remove the php references here:
install_packages() {
apt-get update && apt-get -y upgrade
apt-get install -y apache2 mariadb-server \
php libapache2-mod-php php-intl php-mysqli php-gd \
php-curl php-imap php-mailparse libapache2-mod-md \
certbot python3-certbot-apache git sudo whois cron