All Recipes
140 recipes available
Install Image Optimizers used by the Spatie Media LIbrary Package
Install Image Optimizers used by the Spatie Media LIbrary Package (see https://docs.spatie.be/laravel-medialibrary/v7)
sudo apt-get install jpegoptim
sudo apt-get install optipng
sudo apt-get install pngquant
sudo npm install -g svgo
Install SOAP on PHP 7 enabled servers
By default, forge doesn't install the Soap client with its PHP setup.
sudo apt-get install php7.0-soap
Install PHP Redis extension for PHP 7.3
sudo pecl install redis
sudo echo "extension=redis.so" > /etc/php/7.3/mods-available/redis.ini
sudo ln -sf /etc/php/7.3/mods-available/redis.ini /etc/php/7.3/fpm/conf.d/20-redis.ini
sudo ln -sf /etc/php/7.3/mods-available/redis.ini /etc/php/7.3/cli/conf.d/20-redis.ini
Install ImageMagick for PHP 7.3
apt-get install -y php-imagick
Reset MySQL 8 default authentication plugin
Reset MySQL 8 default authentication plugin to `mysql_native_password` so everything just works
# Default to mysql_native_password
echo "default-authentication-plugin = mysql_native_password" >> /etc/mysql/mysql.conf.d/mysqld.cnf
# Restart MySQL
Install wkhtmltopdf (v 0.12.5-1 on Ubuntu 18.04)
Install the latest version (July 2019) of wkhtmltopdf on Ubuntu 18.04
# Author: Rob Allport for f9web.co.uk
echo "Install dependencies"
apt-get install -y wget fontconfig libxrender1 xfonts-base xfonts-75dpi libjpeg-turbo8 libxext6
Craft CMS 3
See https://github.com/engram-design/craft-forge-recipe for description
#!/bin/bash
# Exit immediately if a simple command exits with a non-zero status (https://ss64.com/bash/set.html)
set -e
Install ElasticSearch 7.x
Updated Elasticsearch version to 7.x and fix Java dependency
echo ">> Installing Elastic GPG Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo ">> Install apt-transport-https"
fail2ban config
Create a fail2ban Configfile and restart the fail2ban-service. You should run the script as root.
cd /etc/fail2ban
printf '%s\n' \
'[INCLUDES]' \
Elasticsearch 5x
install elasticsearch 5x versions
echo ">> Installing Elastic GPG Key"
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
sudo apt-get install apt-transport-https
Install imagick ext for PHP 7.2
This script will install imagick 3.4.3 and add the extension to your php.ini file, for servers running PHP 7.2
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit
Install imagick ext for PHP 7.1
This script will install imagick 3.4.3 and add the extension to your php.ini file, for servers running PHP 7.1
#!/bin/bash
if [ "$EUID" -ne 0 ]
then echo "Please run as root"
exit