And then click next and wait until finishexit exit3. Now need to change the permission for htdocs :cd /opt/lampp sudo chmod 777 htdocs

create one demo.php file and write code :

<?php
echo “Hello World !”;
?>

4. To start the XAMPP service :

sudo su /opt/lampp/lampp start exit exit5. To stop the XAMPP service:sudo su /opt/lampp/lampp stop exit exit6. To open the page of XAMPP, whenever you want, type in the address bar of your browser:http://localhost/xampp/7. To run the php file:http://localhost/xampp/demo.php