Skip to content

Instantly share code, notes, and snippets.

@joonassandell
Last active November 3, 2016 09:13
Show Gist options
  • Save joonassandell/6b4f2df3c5a6abfc5ab9b978997cad3a to your computer and use it in GitHub Desktop.
Save joonassandell/6b4f2df3c5a6abfc5ab9b978997cad3a to your computer and use it in GitHub Desktop.
Install Composer to *nix systems (Jelastic, Apache, Nginx)
# Install Composer to Jelastic etc.
If the environment is new, you'll need composer.
1. `cd /var/www/webroot`
2. `curl -sS https://getcomposer.org/installer | php`
3. `mkdir ~/bin`
4. `mv ./composer.phar ~/bin/composer`
After installing, you can add composer to your PATH.
**Apache**
5. `export PATH=$PATH:/var/www/bin`
6. `echo 'export PATH=$PATH:/var/www/bin' >> ~/.bash_profile`
**Nginx**
5. `export PATH=$PATH:/var/lib/nginx/bin`
6. `echo 'export PATH=$PATH:/var/lib/nginx/bin' >> ~/.bash_profile`
Check that your installation works.
7. `composer about`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment