Laravel Community Tools by Tighten

All Recipes

140 recipes available

Install PHP Redis extension for PHP 8.0

sudo apt-get install libzstd-dev
yes | sudo pecl install redis
sudo echo "extension=redis.so" > /etc/php/8.0/mods-available/redis.ini
sudo ln -sf /etc/php/8.0/mods-available/redis.ini /etc/php/8.0/fpm/conf.d/20-redis.ini
4 years ago
pelmered

Change all SSL sites on this server to use HSTS

Pick

HSTS is a setting you can enable on your SSL-enabled domains to ensure browsers will never connect to the non-secured version of your web site. https://https.cio.gov/hsts/ If you run this scr...

# Set the text we want to insert into each record
INSERT='\    # Enable HSTS (added manually)\n    add_header Strict-Transport-Security "max-age=31536000" always;\n'

# For every site in sites-available without the phrase "HSTS" in it...
4 years ago
mattstauffer

MSSQL recipe

Installs the MSSQL php packages for php 7.4

#!/bin/sh

PHP_MSSQL_DRIVERS=Ubuntu2004-7.4
PHP_MSSQL_RELEASE=5.9.0
4 years ago
nathan@lionslair.net.au

Installing latest version of MongoDB

1. Registering the key to use the official mongodb apt repository 2. Update the package manager so it knows about the new repository 3. Install last version of MongoDB & some php tools to build t...

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list

sudo apt-get update
4 years ago
mirek@montsoft.pl

[WIP] Install gRPC PHP extension

Instructions: - https://github.com/grpc/grpc/tree/master/src/php - https://github.com/protocolbuffers/protobuf/tree/master/php

sudo pecl install protobuf
sudo pecl install grpc
4 years ago
nelson6e65

Fix Broken Ubuntu Dependencies

Repair potentially broken Ubuntu broken dependencies

# Repair broken apt
apt --fix-broken -y install 
apt-get -f -y install
4 years ago
nelson6e65

Install MeiliSearch

Install MeiliSearch with Laravel Forge https://www.meilisearch.com/

# Install MeiliSearch
curl -L https://install.meilisearch.com | sh

# Move the MeiliSearch binary to your system binaries
4 years ago
mashem

Disable MySQL8 Binary Logs

I had a Forge instance with five WordPress websites and MySQL binary logs took up over 10GB of space and eventually crashed the server. Run this to disable binary logging and be sure to check that ...

# Disable MySQL8 Binary Logs
echo "disable_log_bin" >> /etc/mysql/my.cnf

# Restart MySQL
5 years ago
scie

Resolve the issue of your RR email customer support

I am Dave Heller, I work as a Senior Technician at the RR email Support Service. We provide technical email support for various email: Roadrunner email , or TWC email,or TWC mail, or Time Warner e...

https://www.3citcians.com/roadrunner-email-support
5 years ago
Daveheller

elastic search

echo ">> Installing Elastic GPG Key"
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -

echo ">> Adding deb package"
5 years ago
hangrand

Install Imagick for PHP 7.3

This script will install imagick via PECL and add the extension to your php.ini file, for servers running PHP 7.3

#!/bin/bash
if [ "$EUID" -ne 0 ]
  then echo "Please run as root"
  exit
5 years ago
superbig

Install wkhtmltopdf 12.5.1 (latest as of 05/03/2020) on Ubuntu 18.04 LTS (Bionic Beaver)

Install wkhtmltopdf 12.5.1 (latest as of 05/03/2020) on Ubuntu 18.04 LTS (Bionic Beaver)

# Author: Rob Allport for f9web.co.uk
# script should be ran as the root user

echo "Installing required packages ..."
5 years ago
RobAllport