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
chmod +rx xampp-linux-5.6.11-1-installer.run
sudo ./xampp-linux-5.6.11-1-installer.run
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/manager-linux.run
if you are using 64 bit version of xampp, run this command:
sudo /opt/lampp/manager-linux-x64.run
Happy coding :)
thank you . keep going . such a good and useful blog!
ReplyDeletethank you :)
Delete