Since we need composer, lets install it.
We have to have installed curl and php-cli on our server.
- curl
apt-get install curl
- php-cli
apt-get install php5-cli
Lets now install composer.
curl -sS https://getcomposer.org/installer | php
Lets now move composer to /user/local/bin/composer so we can run it anywhere in the system.
mv composer.phar /usr/local/bin/composer
Inside the folder that we want to put Laravel 5, in my case /home/webroot/domain.com/www2/ lets run
/usr/local/bin/composer create-project laravel/laravel www2 dev-develop
Simple and fast.
(…)
Inside the folder, that we installer laravel /home/webroot/domain.com/www2 lets run
php artisan -V
HOORAY! Laravel Framework version 5.0-dev!
References
https://getcomposer.org/doc/00-intro.md#installation-nix
http://laravel.com/docs/4.2/installation
https://laracasts.com/series/laravel-5-from-scratch/episodes/2