Recently, I went to install the Laravel PHP framework on a fresh virtual machine. Here are the steps that I went through.
First of all, I created a directory for my project and made this my current directory.
$ mkdir myproject $ cd myproject
I decided to use Composer to install Laravel. In order to install Composer I needed to use curl. So, I needed to install curl.
$ sudo apt-get install curl $ curl -sS https://getcomposer.org/installer | php
If you want to execute composer directly, so instead of typing…
$ php composer.phar
You can do the following…
$ sudo chmod +x composer.phar $ composer.phar
If you want composer to be globally accessible from any folder on your Linux environment, then use the following…
$ mv composer.phar /usr/local/bin/composer
Next, I went to install Laravel. Here, I got an error saying “Mcrypt PHP extension required”. This was resolved as follows.
View original post 379 more words