Want to get a LAMP development environment fired up without the hassles of configuring everything from scratch? XAMPP makes it a breeze.

If you have ever had to set up a Linux, Apache, MySQL and PHP or Perl installed and running at the same time you know what hassle it can be. If you are new Linux it can be a rather daunting experience just trying to set everything up, nevermind learning scripting languages like PHP, Perl and a database like MySQL or SQL Lite.

XAMPP is a single packaged download from Apache Friends which provides all of the pieces of software needed, plus more you probably don't need, to make Apache installations with server-side scripting and a few database options ready to go in a testing or development environment.

In this article we will focus on getting XAMPP running on Linux, it will also work on Windows and a version for Sun’s Solaris is also available. For our example we will use a Debian-based Linux distribution, but just about any flavour of Linux will work. To start, you will need to download the XAMPP package for Linux from the SourceForge Web site. The current version we downloaded was 1.4.9a.

The file is 34MB and according to the Apache Friends Web site includes the following software:

  • Apache 2
  • MySQL 4
  • PHP 5, 4 & PEAR
  • SQLite 2.8.9 + multibyte (mbstring) support
  • Perl 5
  • ProFTPD
  • phpMyAdmin
  • OpenSSL
  • Freetype
  • libjpeg, libpng
  • gdbm
  • zlib
  • expat
  • Sablotron
  • libxml
  • Ming
  • Webalizer
  • pdf class
  • ncurses
  • mod_perl
  • FreeTDS
  • gettext
  • IMAP C-Client 2002b
  • OpenLDAP (client)
  • mcrypt
  • mhash
  • Turck MMCache
  • cURL
  • libxslt
  • phpSQLiteAdmin
  • MD5 checsum: 4e853c535ced4e707cbfa6e59c0fc4e2

Security note
XAMPP is recommended to be only used in a development environment and not in production as the system has very loose security settings. The system can be tweaked to be more secure and we recommend following the steps here.

Once the package is downloaded you will need to extract it to a file. You can do this in two ways depending on which version of Linux you are using. You can use a file manager and extract the package into the /opt file.

To extract the files manually you can a console and type in the following:

tar xvfz xampp-linux-1.4.9a.tar.gz -C /opt

Make sure you are logged in as the system administrator. To do this manually type in su. It will then ask for your administration password. Type in the system's administration password.

Once this file has been extacted you will need open the file "lampp" in the /opt/lammp directory. If you open this using the file manager it will prompt a command shell with all the user options as shown in figure 1 below.


Firgure 1: The commands for XAMMP

If you need to do this manually, open a console and type the following command:

/opt/lampp/lampp start

The screen should show the same shell as shown in figure 1. After everything has started the next step is to test the Apache Server is running. The easiest way to do this is to open up a browser of your choice and type in the following:

http://localhost

XAMPP has a splash screen that will look something like in figure 2 with sample scripts ready for testing and use. Your LAMP environment is now ready to test your own Web applications.


Figure 2: The XAMMP welcome screen
Advertisement

 Do you need help with PHP? Gain advice from Builder AU forums

  • Comments

1

Grimm - 22/10/04

There is wrong link to http://www.apachefriends.org/en/ (missing http://) near list of included apps.

» Report offensive content

2

Brendon Chase - 25/10/04

Thanks for letting us know. It should work fine now.

--Brendon

» Report offensive content

3

James Lorenzana - 05/10/05

What are the system requirements for XAMP file on Linux?

» Report offensive content

4

Brendon Chase - 06/10/05

Since I wrote this a year ago XAMPP also now works on Mac OSX.

There is no official system requirements for XAMPP supplied by the makers but we got this up and running on an older Dell Laptop with the following specs:

Debian-based Linux
1Ghz processor
256RAM

I feel that you could run XAMPP on something less powerful than this and it would run fine, even some old PII boxes that might be used as door stops around the office.

» Report offensive content

5

zoilo orit - 10/01/06

Please help me ... how can I make lampp run as a service in Linux

tnx...

» Report offensive content

6

Traci - 26/04/07

I am a recruiter. I have a great LAMP opportunity in Yardley PA. If you or someone you know wants to learn more, please email me at traci@bartfieldsearch.com.

» Report offensive content

  • Leave A Comment

(if you need to share some code)

You must read and type the 6 chars within 0..9 and A..F

* mandatory fields.

  • Latest comments

6

Traci - 26/04/07

I am a recruiter. I have a great LAMP opportunity in Yardley PA. If you or someone you know ... more

5

zoilo orit - 01/10/06

Please help me ... how can I make lampp run as a service in Linux tnx... ... more

4

Brendon Chase - 10/06/05

Since I wrote this a year ago XAMPP also now works on Mac OSX. There is no official system requirements for XAMPP ... more

Log in


Sign up | Forgot your password?

  • Blogs

StaffXO to run XP
When Bill Gates says that everything in the world should be a computer, what he means is that everything in the world should be running Windows. Read more »

-- posted by Staff

StaffDrop in on Builder AU at Open CeBiT 2008
Got a question on open source you need answered? Need a way to help convince your boss that open source is the way to go? Or just curious to learn what all the fuss is about? Then drop in to the Builder AU Open Source Afternoon on Wednesday May 21. Read more »

-- posted by Staff

Chris DuckettAssumption-based Hacking 101
High-level thinking leads to assumptions, and assumptions are the mother of all mistakes -- consequently the best place to find a security hole is in a place where the programmer has made an incorrect assumption. Read more »

-- posted by Chris Duckett

  • What's On?

Club Builder: Vapour-where? Club Builder: Vapour-where?
Applets are back from the dead, but do we want them? This week's Club Builder also looks at which pieces of software are utter vapour.

Understanding task and data parallelism
The difference between task and data parallelism, and how there is a way around the limits imposed by Amdahl's Law.