Back to Recipes
mrl22
3 recipes shared
Update PHP-FPM Settings - All Installed PHP Versions.
This script will loop through the php-fpm php.ini files for all installed PHP versions and replace the settings with the ones defined in this file. Just update the replacers[] array and run.
#!/usr/bin/env bash
declare -A replacers
1 year ago
mrl22
Blank Default Site
Find the default site and remove all code from the index.html so that when visiting the servers IP address, it no longer displays a Laravel Forge welcome page.
#!/usr/bin/env bash
# Check if running as root
if [[ $EUID -ne 0 ]]; then
1 year ago
mrl22
Harden and Optimise Nginx/SSL
Hardens Nginx and Optimises Nginx SSL. Pretty much automates this guide > https://beguier.eu/nicolas/articles/nginx-tls-security-configuration.html
#!/usr/bin/env bash
# Ensure the script is run as root
if [ "$EUID" -ne 0 ]; then
1 year ago
mrl22