Steps to Install and configure XAMPP server
1) download xampp
2) cd Downloads
3) sudo chmod +x xampp-linux-x64-8.2.0-0-installer.run
4) sudo ./xampp-linux-x64-8.2.0-0-installer.run
5) click on manage server
6) Start Apache server
if not starting then check Apache service using following command :
sudo service apache2 status
sudo service apache2 stop
start apache
if problem occurs for Apache2 then configure and change port number to 81
7) if not starting then check mysql service using following command :
if problem occurs for mysql then click configure and change port number to 3307
start mysql
Steps to copy paste .php and .html files in htdocs folder
1) To change the privilege of htdocs file do the following: Open new terminal
2) sudo su
3) enter password
4) chmod -R 777 /opt/lampp/htdocs
5) After this copy and paste the .php file and .html file in htdocs
6) Go into the browser
7) localhost:81/phpmyadmin
8) localhost:81/contact.html