If you are window user and currently switch to Ubuntu and want to install XAMPP server on your system then this post can help you to install and run Xampp. Follow below steps to learn how to setup XAMPP.
Step 1. Download latest release of Xampp server from there official website or click here and download Xampp for Linux.
Step 2. Now open terminal or press ctrl+alt+t to open, login in terminal as super user type
Step 3. Now go to directory where you download file and run following command
chmod +x xampp-linux.run
Step 4. Now enter this command to open and run install
Step 5. After above command installation window open you can run installation
After you can install your Xampp you can run your PHP code.