Install XAMPP On Ubuntu :
Download the latest version from the official download page. As of writing this article, the latest version was 5.6.8.
After downloading the XAMPP package, make it executable as shown below.
sudo chmod +x xampp-linux-x64-5.6.8-0-installer.run
Now, install XAMPP stack as shown below.
sudo ./xampp-linux-x64-5.6.8-0-installer.run
You’ll be asked to answer a couple questions. Here. I will go with defaults.
Press Y to accept the defaults.
----------------------------------------------------------------------------
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited)
XAMPP Developer Files [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press [Enter] to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
Welcome to the XAMPP Setup Wizard.
----------------------------------------------------------------------------
Select the components you want to install; clear the components you do not want
to install. Click Next when you are ready to continue.
XAMPP Core Files : Y (Cannot be edited)
XAMPP Developer Files [Y/n] :y
Is the selection above correct? [Y/n]: y
----------------------------------------------------------------------------
Installation Directory
XAMPP will be installed to /opt/lampp
Press [Enter] to continue:
----------------------------------------------------------------------------
Setup is now ready to begin installing XAMPP on your computer.
Do you want to continue? [Y/n]: y
----------------------------------------------------------------------------
Please wait while Setup installs XAMPP on your computer.
Installing
0% ______________ 50% ______________ 100%
#########################################
----------------------------------------------------------------------------
Setup has finished installing XAMPP on your computer.
open up your web browser, and navigate to http://localhost/xampp.
Magento software installation
1 Download magento folder on the magento website.
2 After downloading extract this folder and move in this path“ /opt/lampp/htdocs ‘
3 change ownership of lampp user ( by default daemon user in xampp )
- open terminal and type this command “ sudo nano /opt/lampp/etc/httpd.conf “ and change :
Open /opt/lampp/etc/httpd.conf change nobody and nogroup
User daemon to User < ur local user >
User daemon to Groups < ur local group >
4 After change ur magento2 folder Ownership below this command
sudo chown admin:admin /opt/lampp/htdocs/magento2
5 After Full control(permission) below folder into magento2
sudo chmod -R 777 var/ pub/ App/etc
6 After run this commands :
chmod -R g+w /opt/lampp/magento2/{app/etc,vendor}
chmod -R g+w /opt/lampp/htdocs/magento2/{app/etc,vendor}
find /opt/lampp/htdocs/magento2/ -type d -print0 | xargs -r0 chmod 750
find /opt/lampp/htdocs/magento2/ -type f -print0 | xargs -r0 chmod 640
7 Step 4 — Completing Installation Through the Web Interface
- http://server_domain_name_or_IP/magento2