- Backup your hidden
.envfile containing the decryption APP_KEY from/var/www/pterodactyl
- Export the database, in this case ours is named panel
| PROTOCOL="http://"; | |
| read -p "Enter the web address (without the http:// prefix, eg domain name mymoodle123.com or IP address 192.168.1.1.): " WEBSITE_ADDRESS | |
| MOODLE_PATH="/var/www/html/sites" | |
| MOODLE_CODE_FOLDER="$MOODLE_PATH/moodle" | |
| MOODLE_DATA_FOLDER="/var/www/data" | |
| sudo mkdir -p $MOODLE_PATH | |
| sudo mkdir -p $MOODLE_DATA_FOLDER | |
| sudo apt-get update && sudo apt upgrade -y | |
| sudo apt-get install -y php8.3-fpm php8.3-cli php8.3-curl php8.3-zip php8.3-gd php8.3-xml php8.3-intl php8.3-mbstring php8.3-xmlrpc php8.3-soap php8.3-bcmath php8.3-exif php8.3-ldap php8.3-mysql | |
| sudo apt-get install -y unzip mariadb-server mariadb-client ufw nano graphviz aspell git clamav ghostscript composer |
| #!/bin/bash | |
| apt-get update && apt-get upgrade -y | |
| apt-get install -y nginx mariadb-server | |
| apt-get install -y software-properties-common ca-certificates lsb-release apt-transport-https unzip git curl | |
| add-apt-repository ppa:ondrej/php -y | |
| apt-get update | |
| apt-get install -y php8.4 php8.4-fpm php8.4-common php8.4-mysql php8.4-gmp php8.4-curl php8.4-intl php8.4-mbstring php8.4-soap php8.4-xmlrpc php8.4-gd php8.4-xml php8.4-cli php8.4-zip | |
| PHP_INI="/etc/php/8.4/fpm/php.ini" | |
| sed -i 's,^memory_limit =.*$,memory_limit = 256M,' $PHP_INI | |
| sed -i 's,^;max_input_vars =.*$,max_input_vars = 6000,' $PHP_INI |
| Seed = 6203779439362286407 | |
| QOL Mods: | |
| -Fabric API | |
| -Anti-XRAY | |
| -Fabric Homes | |
| -Fabric TPA | |
| -Graves | |
| -Inventory Sorter | |
| -Krypton |