Laravel Community Tools by Tighten

All Recipes

144 recipes available

Install NTP Server

sudo apt-get install ntp
sudo service ntp restart
10 years ago
travoltron

Patch LOGJAM Vulnerability

Patches the LOGJAM SSL vulnerability. This recipe may take several minutes to complete.

openssl dhparam -out /etc/nginx/dhparams.pem 2048

cat > /etc/nginx/logjam_fix << 'EOF'
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:DHE-DSS-AES128-GCM-SHA256:kEDH+AESGCM:ECDHE-RSA-AES128-SHA256:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-DSS-AES128-SHA256:DHE-RSA-AES256-SHA256:DHE-DSS-AES256-SHA:DHE-RSA-AES256-SHA:AES128-GCM-SHA256:AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:AES256-SHA:AES:CAMELLIA:DES-CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CBC3-SHA:!KRB5-DES-CBC3-SHA';
10 years ago
marktopper

Install WP-CLI

Installing WP-CLI and moving it to path and giving it execute permissions.

cd ~/
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
chmod +x wp-cli.phar
10 years ago
Baadier

Use php.ini-production

We download php.ini-production from the php repo

cd /etc/php5/fpm
mv php.ini php.ini.orig
wget -O php.ini https://raw.githubusercontent.com/php/php-src/master/php.ini-production
service php5-fpm restart
10 years ago
missoxd

Disable Xdebug

Disables Xdebug for production servers. Based on fideloper https://laracasts.com/discuss/channels/forge/disable-xdebug/replies/3310

sudo php5dismod xdebug
sudo service php5-fpm restart
10 years ago
steveneaston

Install a locale to your server

When needed, an easy recipe to add locale to the machine.

# You should change fr_CA for the locale you want.
echo ">> Installing fr_CA locale"
sudo locale-gen fr_CA
sudo locale-gen fr_CA.UTF-8
10 years ago
jpmurray

Enable 1GB swap (fast & will survive a reboot)

Creates a 1G swapfile that will be mounted again each time the instance boots by adding it to /etc/fstab. Based on: https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

if [ -f /swapfile ]; then
    echo "Swapfile already exists?"
    exit 1
fi
10 years ago
simensen

Secure your server with CSF

This recipe installs CSF - ConfigServer Security & Firewall ( see http://configserver.com/cp/csf.html ). CSF adds firewall and numerous security settings to your server, and is recommended to insta...

# Your IP.
# NOTE! CHANGE THIS VARIABLE TO THE IP OF THE SERVER ADMIN
ADMIN_IP="111.111.111.111"

10 years ago
stingray454

Fix app/storage permissions

Because 777 permissions are wrong, this sets a forge provisioned site's storage directory to the correct permissions. Run this as a root user after updating line 2.

# Update this to the 
cd /home/forge/mysite/
php artisan cache:clear
cd app
10 years ago
baf

install automysqlbackup

After much pain trying to figure out how to make the process of rsyncing backups created by automysqlbackup, I came up with this working recipe that requires no manual configuration at all The s...

# Install automysqlbackup
apt-get -y --force-yes install automysqlbackup

# Create post backup script
10 years ago
vesper8

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
10 years ago
picoprime

Install Elasticsearch 1.5

https://gist.github.com/nicgutierrez/e648de313a53eada658d

echo ">> Update Aptitude"
apt-get update
 
echo ">> Install Java"
10 years ago
nic