- Initial Server Setup with Ubuntu 12.04
- How To Install Linux, nginx, MySQL, PHP (LEMP) stack on Ubuntu 12.04
- A Basic MySQL Tutorial
- How To Install phpMyAdmin on a LEMP server
- How To Install Git on Ubuntu 12.04
- Generating SSH Keys and connect with DigitalOcean
- Install Composer on DigitalOcean
- Install php5-cli if you get stuck with installing Composer
- Install phpdotenv
- Tricky RVM installation on EC2
- Install Ruby >= 1.9 (RVM/Rbenv) for Bedrock and Capistrano dependencies
- Half way using this — How To Install Wordpress on Ubuntu 12.04 *for Multiple WPs skip here.
- Use Bedrock instead
- Nginx Server Block — remove default & restart services
- Update Bedrock to include Roots & increase php.ini memory_limit
-
-
Save od3n/e09422d9b5a8aeea63e4 to your computer and use it in GitHub Desktop.
I had some complication when installing RVM on a fresh EC2 instance. Turned out when I do
$ echo $SHELL
I got /bin/sh
. So I had to switch to /bin/bash
and RVM installation was smooth.
http://superuser.com/questions/231735/how-do-i-change-my-default-shell-from-bash-to-zsh
$ composer install/ $ composer update
$ PHP Fatal error: Uncaught exception 'ErrorException' with message 'proc_open():
fork failed - Cannot allocate memory' in phar:///usr/local/bin/composer/vendor/symfony/console/Symfony/Component/Console/Application.php:990
$ nano /etc/php5/fpm/php.ini
...
php_admin_value[memory_limit] = 128M # change this accordingly; I did 256M
$ service php5-fpm reload
$ composer update
Follow this tutorial until Step Six — Set Up Nginx Server Blocks: https://www.digitalocean.com/community/articles/how-to-install-wordpress-with-nginx-on-ubuntu-12-04
set $dir "";
if ($request_uri ~ ^/([^/]*)/.*$ ) {
set $dir1 /$1;
}
location / {
try_files $uri $uri/ $dir1/index.php?$args;
}
via source here.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment