Last active
November 3, 2016 09:13
-
-
Save joonassandell/6b4f2df3c5a6abfc5ab9b978997cad3a to your computer and use it in GitHub Desktop.
Install Composer to *nix systems (Jelastic, Apache, Nginx)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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