Wednesday 31 August 2016

Laravel 5 Installation in Linux


Step 1:

Requirements of Laravel framework installation in Linux

i) xampp or wampp

ii) Composer

iii) mcrypt

Step 2:

First you have to complete the xampp installation and then start the server using following command

   sudo /opt/lampp/lampp restart

Step 3:

Install the required softwares for laravel framework

   sudo apt-get install curl php5-cli git

   sudo apt-get install openssl

Step 4:

Install the composer using getcomposer.org

   curl -sS https://getcomposer.org/installer | php 
   sudo mv composer.phar /usr/local/bin/composer

Step 5:


Now you need to get important dependencies of laravel - mcrypt

   sudo apt-get install php5-mcrypt php5-json

And now run,

   sudo php5enmod mcrypt

To make sure it is running,

   php -i | grep mcrypt

Step 6:

Let us now move to directory of public_html

   cd /opt/lampp/htdocs

And then make directory like a laravel-projects

   mkdir laravel-projects

Now you have to execute the command for new projects

   sudo composer create-project laravel/laravel --prefer-dist

It’s gonna take its time. Just wait for it to finish. Once it is done, execute

   sudo chmod -R 775 laravel

Step 7:

Now move to the directory into laravel, then execute artisan-serve

  sudo php artisan serve

Finally visit the http://localhost:8000




Wednesday 17 August 2016

Laravel 5.0 installation in easy method


step 1:

Download and install the composer using getcomposer.org

step 2:

Install the composer using php variable path

ex: c:\xampp\php\php.exe

or

c:\wamp\php\php.exe

step 3:

Open the command prompt and then set global requirement for composer

composer global require "laravel/installer"

(it will take some time for installation)

step 4:

Set path variable to environment variables

set path = C:\Users\administrator\AppData\Roaming\Composer\vendor\bin

step 5:

Finally create a new project using laravel

c:\xampp\htdocs> composer create-project laravel/laravel --prefer-dist

c:\xampp\htdocs\laravel> composer update

step 6:

Finally open the project using browser

localhost/project_namr/public