Installing Xampp and Laravel on Linux (Ubuntu , mint , OpenSuse …)

Installing Xampp and Laravel on Linux (Ubuntu , mint , OpenSuse …)

This tutorial show you how to Install Xampp ,Laravel and Lumen on Linux (Ubuntu , mint , OpenSuse …).If you are involved in building web apps using PHP, MySQL / MariaDB and Apache the Xampp is the ultimate choice for Development .

XAMPP is a completely free, easy to install Apache distribution containing MySQL / MariaDB, PHP, and Perl. The XAMPP open source package has been set up to be incredibly easy to install and to use. Best part is Xampp is cross-platform tool available for Windows , Mac and Linux.

Xampp Installation :

First visit Xampp official Website apachefriends.org and download  latest and stable version of xampp and save in Home Folder. Now open Terminal / Konsole and Change the permissions to the installer using command

sudo chmod 755 xampp-linux-*-installer.run

Now run the Xampp Installer

sudo ./xampp-linux-*-installer.run

and follow instruction after some time XAMPP will be installed on /opt/lampp directory. Now first we have to make /opt/lampp/htdocs/ writable so we can easily create files and folders there by following command
 sudo chmod 777 -R /opt/lampp/htdocs

 xampp-installation

Remember Some Xampp commands :

sudo /opt/lampp/lampp start (Will Start Xammp)
sudo /opt/lampp/lampp stop  (will Stop Xampp)
sudo /opt/lampp/lampp restart (will restart Xampp)

Setting Enviroment Variable

sudo kate /etc/environment
add :/opt/lampp/bin/php in last and save
sudo ln -s /opt/lampp/bin/php /usr/local/bin/php
Note : Replace kate with your installed text editor .

Installing composer Globally

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

Creating Laraval Project

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

Creating Lumen Project
composer create-project --prefer-dist laravel/lumen blog
For complete video tutorial visit to install xampp laravel 
lumen on linux at https://www.youtube.com/watch?v=Q2V7offiUYQ 

Leave a Reply

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

Do you have any Query / Suggestion