Friday, August 28, 2015

How to install XAMPP on Lubuntu 15.04

How to install XAMPP on Lubuntu 15.04

Hi guys, in this article i will show you how to install the xampp for linux version 5.6.11 on lubuntu 15.04 vivid vervet.

For those who don't know what is xampp, xampp is php development bundle, it contains apache web server, mysql and of course php.

You can download the latest xampp from here, it's available for windows, linux, and mac operating system and totally free.

By the time i wrote this article, the latest version of xampp for linux is version 5.6.11, so i'm going to use that for this tutorial.

Step by step how to install XAMPP on lubuntu
  • Download xampp installer from here. Remember to get the latest one and match with your operating system type (32 bit or 64 bit)
  • Open terminal/console, go to ~/Downloads (assuming the xampp installer is located on that folder)
  • cd ~/Downloads
  • Give permission to the xampp installer
  • chmod +rx
  • Run the xampp installer with root permission
  • sudo ./
  • Follow the installation wizard (just hit next and next)
  • Open the xampp manager tool (GUI) and then start mysql and apache service
  • Open your favorite web browser and go to address or localhost
  • Done, now you can start developing php with xampp.

By default xampp installation is located at /opt/lampp, and your apache home directory (place where you put the php,html,css files) is located inside /opt/lampp/, which is /opt/lampp/htdocs/.

You can activate, deactivate, and restart xampp services (apache, mysql, proFTPD) from command line, here's the command:

starting xampp services
sudo /opt/lampp/lampp start

stop xampp services
sudo /opt/lampp/lampp stop

restart xampp services
sudo /opt/lampp/lampp restart

But if you are like me, who prefer the GUI tool, then run this command instead:
sudo /opt/lampp/

if you are using 64 bit version of xampp, run this command:
sudo /opt/lampp/
How to install XAMPP on Lubuntu 15.04

Happy coding :)