All Recipes
144 recipes available
change php.ini settings easily and reload php
#!/usr/bin/env bash
declare -A replacers
Nginx expire rules for static content
rm -rf /etc/nginx/expires.conf
cat >/etc/nginx/expires.conf <<EOF
# Expire rules for static content
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
Create a 1G Swap File (Good for 512k Memory instances)
More times than not if you create a 512kb instance some times during more complex composer instances you will run out of memory. This creates a 1G Swap file on your instance giving a fair bit of br...
echo ">> creating Swap Image file"
touch /var/swap.img
chmod 600 /var/swap.img
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'