All Recipes
140 recipes available
Laravel Forge Default Deploy Script
This is the default recipe created when you spin up a server in Laravel Forge.
cd /home/forge/tylerholhubner
git pull origin master
composer install --no-dev --no-scripts
php artisan optimize --env="production"
Install ElasticSearch 1.4
Forked from @artisangoose Recipe #9; updated Java & Elasticsearch version, and added scheduler to boot Elasticsearch when server reboots
echo ">> Installing Elastic GPG Key"
wget -O - http://packages.elasticsearch.org/GPG-KEY-elasticsearch | apt-key add -
echo ">> Adding deb package"
Install Drush
# Add composer to path
sed -i '1i export PATH="$HOME/.composer/vendor/bin:$PATH"' $HOME/.bashrc
# Resource config
source ~/.bashrc
Install LibXL 3.6.0.1 and Accompanying PHP Extension Interface
This bash script will auto download LibXL and Iliaal's accompanying PHP extension service, and install them to your server. Please note that the LibXL library is a commercial library. This script n...
echo "Downloading and extracting LibXL 3.6.0.1 for linux..."
curl -L ftp://xlware.com/libxl-lin-3.6.0.1.tar.gz | tar zx
cd libxl-3.6.0.1/
ln -s include_c include
Install imagick & php5-imagick (without prompt)
Install imagick and php5-imagick extension without prompt
sudo apt-get install -y imagemagick php5-imagick
Install Webdis - A fast HTTP interface for Redis
Make sure to run this recipe as root.
echo ">> Cloning Webdis Repo"
git clone git://github.com/nicolasff/webdis.git && cd webdis
pwd
Install imagick
Install imagick
sudo apt-get install imagemagick
sudo apt-get install php5-imagick
Set the New Relic app name to the hostname
Set the New Relic app name to the hostname Reboot your server to activate
sudo bash -c 'echo "newrelic.appname="$(hostname) >> /etc/php5/fpm/php.ini'
Fail2ban and iptables-persistent
Simple installation of fail2ban with standard configuration and iptables-persistent.
sudo apt-get update
sudo apt-get install -y fail2ban iptables-persistent
sudo cp /etc/fail2ban/jail.conf /etc/fail2ban/jail.local
Install an auto update script
Add an auto update shell script you can use with Laravel Forge's "New Scheduled Job" feature. • It updates the packages list • It automatically installs security critical updates • It do...
#
# Make sure we won't override something!
#
if [ -f /home/root/scripts/autoupdater.sh ]; then
Elasticsearch 1.1.* plugin: PostgreSQL JDBC River
Installation of a JDBC plugin for elasticsearch : https://github.com/jprante/elasticsearch-river-jdbc
cd /usr/share/elasticsearch
# Installing the JDBC Elasticsearch plugin
./bin/plugin --install jdbc --url http://xbib.org/repository/org/xbib/elasticsearch/plugin/elasticsearch-river-jdbc/1.1.0.2/elasticsearch-river-jdbc-1.1.0.2-plugin.zip
Update & Upgrade
Runs update and dist-upgrade ;)
apt-get update
apt-get -y dist-upgrade