Skip to content

Instantly share code, notes, and snippets.

@jeffersonsouza
Forked from JosefJezek/wp-turbo-engine.md
Created August 28, 2014 16:11
Show Gist options
  • Save jeffersonsouza/52ae31c82c0918787e74 to your computer and use it in GitHub Desktop.
Save jeffersonsouza/52ae31c82c0918787e74 to your computer and use it in GitHub Desktop.

Turbo Engine

Horizontal Scaling

Design

  • VOLUME for wp-content

Layers

wp-config.php

Buildpacks

Dokku

HHVM

W3 Total Cache

Issue

Config

Install on Ubuntu 14.04

sudo apt-get update
sudo apt-get install -y software-properties-common

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list

sudo add-apt-repository -y ppa:nginx/stable

sudo apt-get update
sudo apt-get install -y hhvm nginx

sudo /usr/share/hhvm/install_fastcgi.sh
sudo service hhvm restart
sudo update-rc.d hhvm defaults

# Use HHVM for /usr/bin/php even if you have php-cli installed:
sudo /usr/bin/update-alternatives --install /usr/bin/php php /usr/bin/hhvm 60

php -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment