Monday, November 6, 2017

How to install XAMPP on Lubuntu 17.10

How to install XAMPP on Lubuntu 17.10

If you don't like installing separately one by one for PHP, MySQL, and Apache web server, maybe you prefer using LAMP stack such as XAMPP, then go for it use XAMPP. In this article i will help you on how to install and use XAMPP on lubuntu 17.10 artful.

The current XAMPP installation also comes with php 7.1 just like the default php on lubuntu 17.10 official repo, but XAMPP uses MariaDB instead of MySQL, but basically they are the same.

Before we begin, if you previously installed apache and mysql server separately, you need to stop the service, because XAMPP will use the same port number.
sudo service apache2 stop
sudo service mysql stop

How to install XAMPP on Lubuntu 17.10
  • download XAMPP for linux version 7.1.10 
  • open command line/terminal on lubuntu
  • give permission to the XAMPP .run installer (assuming the XAMPP installer is located at ~/Downloads/ folder)
  • chmod +rx ~/Downloads/
  • run the XAMPP .run installer
  • sudo ~/Downloads/
  • finish XAMPP installation setup wizard
  • done!

How to start, stop, restart XAMPP from command line
starting xampp
sudo /opt/lampp/lampp start
stopping xampp
sudo /opt/lampp/lampp stop
restarting xampp
sudo /opt/lampp/lampp restart
xampp 7.1.10 on lubuntu 16.04

xampp 7.1.10 on lubuntu 16.04

How to start, stop, restart XAMPP using GUI tool
You still need the command line to open the GUI tool though :)
sudo /opt/lampp/

Where is XAMPP located?
By default xampp will be installed under /opt/lampp, and for the document root of apache web server is /opt/lampp/htdocs/, this is where you should put your web files such as html, css, php, js, and so on. You can visit http://localhost/ to access the local web server.

No comments:

Post a Comment