Skip to content

Instantly share code, notes, and snippets.

@Twinuma
Created October 7, 2013 16:39
Show Gist options
  • Select an option

  • Save Twinuma/6870987 to your computer and use it in GitHub Desktop.

Select an option

Save Twinuma/6870987 to your computer and use it in GitHub Desktop.
WordPress + Really Static + s3fs
sudo yum install gcc make libstdc++-devel gcc-c++ fuse fuse-devel curl-devel libxml2-devel openssl-devel mailcap
sudo wget https://s3fs.googlecode.com/files/s3fs-1.73.tar.gz
mv s3fs-1.73.tar.gz /usr/local/src
sudo mv s3fs-1.73.tar.gz /usr/local/src
cd /usr/local/src
sudo tar zxvf ./s3fs-1.73.tar.gz
cd s3fs-1.73
sudo ./configure --prefix=/usr
sudo make
sudo make install
sudo vi /etc/passwd-s3fs
access_key:secret_key
sudo chmod 640 /etc/passwd-s3fs
sudo mkdir /mnt/s3
sudo s3fs static-wordpress-kagoshima /mnt/s3 -o allow_other
sudo cp -R /var/www/vhosts/i-e19a2be4/wp-content/themes/twentythirteen/ /mnt/s3/wordpress/wp-content/plugins/really-static/static/wp-content/themes/
sudo chown -R nginx:nginx twentythirteen/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment