Install Laravel on Ubuntu with XAMPP

20 Dec

Install Laravel on Ubuntu with XAMPP

The steps to install Laravel on Ubuntu with XAMPP are.

Step 1:
Install composer using the below command.
sudo curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

Step 2:
Create a soft link
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php

Step 3:
Move the composer.phar to the bin folder by using the below command.
mv composer.phar /usr/local/bin/composer

Step 4:
Run the below command to install the Laravel.
composer global require "laravel/installer"

Step 5:
Create a Laravel project.
/home//.config/composer/vendor/bin/laravel new test_1

Step 6:
Go to the project folder
cd /home//test_1

Step 7:
Start the Laravel app.
/opt/lampp/bin/php artisan serve

You will get response as
Laravel development server started:

Leave a Reply

Your email address will not be published. Required fields are marked *