Skip to content

Instantly share code, notes, and snippets.

View Broulf's full-sized avatar

Broulf Broulf

View GitHub Profile
@Broulf
Broulf / moodle-install.sh
Last active April 10, 2026 15:17
Moodle-5.1.0 Installation Script
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
@Broulf
Broulf / install-moodle.sh
Last active April 9, 2026 18:46 — forked from mauriballes/install-moodle.sh
Installation script for moodle usign Ubuntu 22.04
#!/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
@Broulf
Broulf / migrate-pterodactyl.md
Created June 14, 2024 14:31 — forked from trenutoo/migrate-pterodactyl.md
Pterodactyl panel and wings migration

Pterodactyl Migration

Migrating panel

  1. Backup your hidden .env file containing the decryption APP_KEY from /var/www/pterodactyl

  1. Export the database, in this case ours is named panel
Seed = 6203779439362286407
QOL Mods:
-Fabric API
-Anti-XRAY
-Fabric Homes
-Fabric TPA
-Graves
-Inventory Sorter
-Krypton