How to install laravel on ubuntu server


Posted on 30 Jan 15 by Vickey

For install laravel we need install composer first.Open your ubuntu terminal and type the following commands.

curl -s | /opt/lampp/bin/php

it will download composer.phar to /home/yourcomputername

now move composer to usr/local/bin or run cmd

sudo mv composer.phar /usr/local/bin/composer

run this command on terminal

/opt/lampp/bin/php  composer.phar it will install composer

after complete the process Insatll Laravel by these steps

  1. Download laravel

  2. extract it and move it in htdocs folder

  3. Open terminal and go in the laravel folder

    cd /opt/lampp/htdocs/laravel
  4. when you are in laravel folder run this command

/opt/lampp/bin/php /usr/local/bin/composer.phar install

after complete process run

 /opt/lampp/bin/php /usr/local/bin/composer.phar update


If this post help you reduce time to develop, you can help me to maintain this website :)