How can I install xampp in Ubuntu

Install XAMPP on Ubuntu

XAMPP is a drive environment for PHP. In Linux, it includes Apache, MySQL, PEAR, SQLite, phpMyAdmin, ProFTPD and much more. This package is ideal for a test server, as everything is immediately available in one installation.

This tutorial shows how to install XAMPP on Ubuntu. If you don't have a (virtual) test server with Ubuntu yet, this tutorial will help you.

By the way: XAMPP is the new name of LAMPP, just so you know ^^


Then let's start with the installation. Click on a screenshot to see the description for the step.

access data

Now I wanted to list the standard access data again, because I always forget them myself ^^

MySQL database

User: root

Password: Empty


User: nobody

Password: lampp


Install Ubuntu on VirtualBox wrote on 08/07/2009:

[...] it works with the installation of XAMPP on our [...]

Alex wrote on June 13, 2010:

Instead of fiddling around with your own IP, you can simply type in and get the same result. Or you just write "localhost"

Stefan Wienströer wrote on June 13, 2010:

For me it's a virtual computer (that's the second part of a tutorial). That's why I don't want to access it from the virtual computer but from my "normal" computer. Then I need the IP for that.

Felix wrote on 09/29/2010:

Many Thanks! Really helpful! It's fun (distributing files with xampp .....)!

Marco wrote on October 30, 2010:

I only found the website today and saw that the tutorial is a bit older than that. But I haven't found such well-made tutorials anywhere as here. My compliments, really well done. PS: With some tutorials it is a bit annoying if you have to switch back and forth between the different images. Otherwise good; P

Stefan Wienströer wrote on October 30, 2010:

There is also a newer version of how to get Apache and Co to run on Ubuntu Server: For turning the page: On some I have already built in the pages, but I have to test whether it works with the picture gallery.

Tobias wrote on December 6th, 2010:

Hey, I have followed all the steps, but when I enter my IP into the browser (Mozilla Firefox), it just says: It works! This is the default web page for this server. The web server software is running but no content has been added yet.

Tobias wrote on December 6th, 2010:

Can anyone help me with this?

Stefan Wienströer wrote on December 6, 2010:

You're already done ;-) The It-Works is the sample page from XAMPP. You can now post your content there (e.g. via FTP).

Chriz wrote on November 3rd, 2011:

Thanks, everything went well :)

Paul wrote on July 17th, 2012:

Hey Stefan, you are talking about running the virtual Linux environment and continuing to work in the Windows version. So you simulate a web server as a virtual server, if I have understood all that correctly. I got the IP from the Linux VM and ran it in the Linux VM in Firefox. I get the XAMPP page displayed. But if I enter the IP outside of the VM, I get page load time errors ... Did I do something wrong? Or misunderstood? Greetings Paul

Stefan Wienströer wrote on July 18th, 2012:

Hi, have a look in the network settings of your VM software. You may have to change something. Greetings Stefan

about us