Install PHP
Base Software
Base Install Script
#!/bin/bash
# Update and Upgrade
apt update && apt upgrade -y && apt full-upgrade -y
#All the base Stuff
apt-get install -y apache2 apt-show-versions apt-transport-https bc binutils bsdmainutils bzip2 ca-certificates curl file git gpg gzip htop jq lib32gcc-s1 lib32stdc++6 libauthen-pam-perl libio-pty-perl libmariadb3 libnet-ssleay-perl libpam-runtime libpam-yubico lsb-release mariadb-client mariadb-server netcat openssl perl python python3 resolvconf rsync screen software-properties-common sudo tar tmux unzip util-linux wget wireguard
PHP Packete
PHP Install Script
#!/bin/bash
# add key and update apt list
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/sury-php.list
wget -qO - https://packages.sury.org/php/apt.gpg | apt-key add -
apt-get update && apt-get upgrade -y
#Set php version
PHPVERSION=8.1
#Install
apt-get install -y php$PHPVERSION php$PHPVERSION-{bcmath,bz2,cgi,cli,common,curl,fpm,gd,gmp,imap,intl,json,mbstring,mysql,opcache,readline,soap,xml,xmlrpc,zip} libapache2-mod-php
Qemu Agent
#!/bin/bash
#If VM guest additions
apt-get install -y qemu-guest-agent
Webmin
Webmin Install Script
#!/bin/bash
# Add key
cd /root
wget https://download.webmin.com/jcameron-key.asc
cat jcameron-key.asc | gpg --dearmor >/etc/apt/trusted.gpg.d/jcameron-key.gpg
sudo sh -c 'echo "deb https://download.webmin.com/download/repository sarge contrib" > /etc/apt/sources.list.d/webmin.list'
# Update apt list
apt-get update -y && apt-get upgrade -y
# Install webmin
apt-get install -y webmin
Qemu Stuff
Qemu Stuff