Laravel Community Tools by Tighten

All Recipes

144 recipes available

ClamAV

ClamAV® is an open source antivirus engine for detecting trojans, viruses, malware & other malicious threats.

# install ClamAV
sudo apt-get -y --force-yes install clamav clamav-daemon

# Configure
1 year ago
charleslangridge

Install bashtop

Install "bashtop" (https://github.com/aristocratos/bashtop) - a small resource monitor and alternative to the more popular "htop". Run this command as the root user.

# Install "bashtop" (https://github.com/aristocratos/bashtop)
# Author: Rob Allport for https://www.f9web.co.uk
# https://github.com/ultrono

1 year ago
RobAllport

Install wkhtmltopdf 12.6.0 on Ubuntu 20.04 LTS (focal)

For Ubuntu 20.04 LTS (focal), install wkhtmltopdf 12.6.0 (see https://wkhtmltopdf.org). The script downloads the binary from the official GitHub repository, installs it and then deletes the origina...

# Install wkhtmltopdf 12.6.0 (Focal / Ubuntu 20.04 LTS)
# Author: Rob Allport for https://www.f9web.co.uk
# https://github.com/ultrono

1 year ago
RobAllport

Install & enable Imagick on PHP8.3

Install imagick & imagick from pecl & connection the extension

#!/bin/bash

if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
1 year ago
LTKort-legacy

frankenphp

Prerequisite, a base server, as a worker server, run recipe as root open ports 80/443 install frankenphp enable mercure set as a service create base caddy config file

#!/bin/bash
ufw allow http
ufw allow https
# Download FrankenPHP binary
2 years ago
tduck

Fix NGINX 413 Request Entity Too Large (cannot upload larger files)

If you cannot upload larger files via your website, it might be because your Nginx config is missing client_max_body_size. This recipe will go through your all websites on the server and add a l...

FILES=/etc/nginx/sites-available/*
restart=0

for f in $FILES
2 years ago
fshequin

Optimize SSL

Enable SSL Session Cache, add Optimized SSL Cyphers, enable SSL Stapling. This is part of a larger SSL optimization process described here: https://laravel-news.com/2016/01/optimizing-ssl-laravel-f...

cat > /etc/nginx/conf.d/ssl_optimizations.conf <<EOT
# Session Cache Settings
ssl_session_cache shared:SSL:20m;
ssl_session_timeout 180m;
2 years ago
fshequin

Install Floating IP

#!/bin/sh
# Install (Hetzner Cloud) Floating IP on Ubuntu 20.4 or Ubuntu 22.04 machine.
# Run this script as root user!
# Make sure to update IP_ADDRESS! 
2 years ago
internetztube

Supervisor Permissions for forge user

Allow forge user to execute supervisorctl commands to e.g. restart a daemon during deployment.

echo 'forge   ALL=(ALL) NOPASSWD: /usr/bin/supervisorctl' | sudo EDITOR='tee -a' visudo

# Example usage in Deploy Script:
# sudo supervisorctl restart daemon-<deamon id>:*
2 years ago
internetztube

Install nvm

Installs nvm (node version manager)

# Execute as forge
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash

# Usage in Deploy Script with .nvmrc file:
2 years ago
internetztube

Install wkhtmltopdf 12.6.1 (Jammy / Ubuntu 22.04.3 LTS)

Install the latest version of wkhtmltopdf on the latest Ubuntu versions as provided by Forge i.e. 22.04. This also works when you have PHP 8.2 set as your default PHP version. Works fine as of 09/0...

# ***
# Created by Rob Allport for https://www.f9web.co.uk
# ***

2 years ago
RobAllport

Install Google Chrome

Install the latest Google Chrome on your Forge server

# Grab latest Chrome .deb
wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -O /tmp/chrome.deb

# Run the dpkg
4 years ago
atamiso