Steps to install XAMPP on UBUNTU


Steps to install XAMPP on UBUNTU

Step 1:Download XAMPP package for Linux from

Step 2:
Make the Installation package executable
$ cd /home/[username]/Downloads
ls
Confirm execute permission to that file
chmod +x xampp-linux-x64-7.2.12-0-installer.run

For installation
sudo ./xampp-linux-x64-7.2.12-0-installer.run
it automatically will install in /opt/lampp

Step 3 : Check status
sudo /opt/lampp/xampp status

cd /opt/lampp/phpmyadmin
sudo nano config.inc.php
here change
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root@123';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';

uncommand localhost line
sudo /opt/lampp/xampp restart
sudo /opt/lampp/bin/mysqladmin –user=root password “root@123” -p
(no need to enter any password at first)
sudo /opt/lampp/bin/mysqladmin –user=root password “root@123” -p
(from second time u need to give password
sudo /opt/lampp/bin/mysql -u root -p
password : root@123

Step 4 : restart the service
sudo /opt/lampp/xampp restart

Verify installation in web browser

Adding new user in MySQL Database in XAMPP server

Step 1: Goto localhost

Step 2: Select database to which we need add new user. test

Step 3: Click on Priviliges tab

Step 4: Add new user

Step 5: Give Username and Password user : root pass : root@123


Download Magento latest release
sudo mkdir /opt/lampp/htdocs/magento2
go to /opt/lampp/htdocs/magento2
sudo tar -xvf ~/Downloads/Magento-CE* .tar.gz -C /opt/lampp/htdocs/magento2

sudo chmod -R 777 var/ pub/ generated/ app/etc/

Change or Modify the directory permission to fit Apache2 configuration.
sudo chown -R www-data:www-data /var/www/html/magento
sudo chmod -R 755 /var/www/html/magento

Restart Apache2
sudo /opt/lampp/xampp restart


Uninstall XAMPP

$ cd /opt/lampp
$ sudo ./uninstall

Manually remove XAMPP folder

$ sudo rm -rf /opt/lampp

To uninstall lampp
cd /opt/lampp
ls
sudo /opt/lampp/uninstall
cd ..
sudo rm -rf lampp

Comments

Popular posts from this blog

How to Add Firebase Analytics to Your NativeScript Mobile App