Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

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 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-*

Now run the Xampp Installer

sudo ./xampp-linux-*

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


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 | 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

0 0 votes
Article Rating
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Newest Most Voted
Inline Feedbacks
View all comments
v k vishwakarma

nice contents


Verry helpful tutorial….thank You