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

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

Related links

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

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

* indicates mandatory fields.

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?

  • Staff Aussies to pay more for Win 7

    If you are looking to make some money in these troubled times, perhaps importing copies of Windows 7 could be for you. Read more »

    -- posted by Staff

  • Staff Firefox: Greens want it, 3.5rc2 not up to par

    This week's roundup looks at the situation surrounding a campaign to change Outlook HTML renderer, a Greens MP wants to install Firefox but is restricted and all the photos from the iPhone 3GS launch. Read more »

    -- posted by Staff

  • Chris Duckett Microsoft misses the Outlook point

    Ask designers which mail program is the bane of their existence, and you'll find that Outlook tops the list. The reason why the most popular email reader is also the most painful is simple: it uses Word to render HTML emails. Read more »

    -- posted by Chris Duckett

What's on?