Alan Edwardes

Installing and Configuring Lampp (the simple guide)

There's a more up to date version of this guide here.

It may not surprise you if you read the posts around here, but I am a very lazy person when it comes to configuring and installing stuff on anything other than Windows OS. I will avoid anything that involves popping open terminal and putting commands in myself, unless I've found them on a forum somewhere.

So, when I was searching the Ubuntu forums for how to make lampp start with Linux, I just wished that someone would post with a clear step by step guide about how to do basic stuff with lampp.

I've decided to create this post in the hope that anyone else trying to configure lampp on Ubuntu Linux doesn't have to look in completely different places to find the answers they are looking for. Note: I'm installing on a clean copy of Ubuntu Linux release 7.10 "Gutsy Gibbon", with lampp version 1.6.4.

(By the way - non Ubuntu users: you should really give Gutsy Gibbon a spin, even if you are a Windows person like me.)

Step One - Get Lampp

Get lampp. So, you'll need a direct link to the Sourceforge.net lampp download page. Make sure that file is downloaded to your Ubuntu desktop, or at least move it there when it's done, or the commands I'm telling you to paste into terminal won't find the file.

Step Two - Install It

Yes, I know there's a perfectly good guide on the lampp site, but it isn't exactly the same for installing it on Ubuntu. So, I'll include the (very slightly) modified version for you to paste into terminal below.
sudo tar xvfz Desktop/xampp-linux-1.6.4.tar.gz -C /opt

That's it. Lampp installed. (Might take a minute or two to extract it all, but it will get there)

Step Three - Starting and Testing

Still in terminal, paste:
sudo /opt/lampp/lampp start

Now you can pop open firefox, and type "localhost" into the address bar.

Note: It should most definately work, but in some cases it doesn't. I'm afraid this article just assumes that the install went fine, you'll have to scour the Apache Friends Network Lampp Documentation for help. Sorry :-(

Step Four - Running Lampp At Boot

Sure, if you don't want to make it run at start-up skip to step five by all means.

So, to make lampp auto run when you boot up your computer, firstly paste the below into terminal:

sudo gedit /etc/init.d/rc.local
When the text editor opens, paste the following just below the "#! /bin/sh" line:
opt/lampp/lampp start

After you have inserted this line, hit the "Save" button, and close the text editor.

So, now lampp will start when you boot your linux box up. At this point I would recommend trying it out, by restarting your computer.

Step Five - Security

For one thing, it is outlined in the Lamp install instructions that your installation should be secure. So, either follow the instructions on the page above, or just paste the following into terminal:
sudo /opt/lampp/lampp security

The steps are pretty straightforward, and mostly all you have to do is enter a password and hit enter.

Step Six - Fixing Stuff

I did find some problems with the normal use of lampp, mainly with the configuration of ProFTPD. For one thing connecting via FTP over my LAN took absolutely ages to connect, hanging before it had even processed my credentials. So, after looking on numerous forums, I found that it was trying to do a reverse lookup on the client's IP address (or something like that). The way to disable it is to get on gedit and change the proftpd.conf file. So, get on terminal and paste:
sudo gedit /opt/lampp/etc/proftpd.conf

Now, paste these two lines anywhere in the document, and click save:

IdentLookups			off
UseReverseDNS			off

I messed about with the settings to let me have read access to the whole server, which is obviously not advised. I also changed the ftp username from "nobody" to "alan".

Well, that's basically it. The lampp server is now ready to be used, so have a play around with it.

Below are the screenshots that I was going to use for this post, then decided against them. (They're showing stuff like running terminal etc)

Oh, and if you're wondering why all of the screenshots are in 1024x768, I took them all over the VNC server (post), and I have it at that resolution so I can see both my Windows and Ubuntu desktop at the same time, so VNC doesn't fill the whole screen.

19 Comments

freddo's Gravatar
1

thx for the tutorial... help fulll

G Srinivasan's Gravatar
G Srinivasan
2

after installing and starting /opt/lampp/lampp start i get all ok except Mysql couldn't start pls guide me

praveen kumar's Gravatar
3

Thank you very much for the guide given in your web site.....

lunique's Gravatar
4

Thank you soooooo much: )

edmar's Gravatar
5

XAMPP: Error 1! Couldn't start Apache! XAMPP: Starting diagnose... XAMPP: Sorry, I've no idea what's going wrong.

gizelle's Gravatar
6

easiest instructions by far thanks soooooooooooooooooo much!!!

crkuchs's Gravatar
7

Do you have another service running on the default port 80? (ie. Skype)

Carlos Gomez's Gravatar
8

For G Srinivasan:

Maybe your pc already have a mysql server running under 3306 port, so the lampp-mysql couldn“t start. check if you have any mysql version running in your pc.

shameem's Gravatar
9

its so good ....keep it up

chamberlain 7th's Gravatar
10

nice! thanks for the instruction.

didthib's Gravatar
11

nice tutorial, really clear...thanks!!!!!!!!!!!!!!

Anand's Gravatar
12

Thanks a lot bro

Simo's Gravatar
13

Thanks a lot dude. I'm amazed. This installation was much faster then i expected. Even faster than Windows installation.

James's Gravatar
14

Thanks, I finally got it going thanks to u

fajar's Gravatar
15

thank you

jan's Gravatar
16

thanks a lot!

Vera's Gravatar
17

Great help. This got me on the right track after puzzling for half a day.

rayyan's Gravatar
18

thanks. i like this simple guide.

Mevin Babu's Gravatar
19

Try following these instructions written for ubuntu 11.10 . It also tell you to start the lampp during boot and how to secure your server . This tutorial should also work for ubuntu 10.04 and above

http://menatronics.blogspot.in/2012/0...

Add a Comment

24th of October 2007 at 9:29 PM

4 years, 6 months ago

written by Alan Edwardes.

787 words

19 comments so far

feed for comments on this post

rand: WLM 8.5 - Still with ...

next: Windows Live Messenger Official Web ...

prev: The Switch To Eclipse

share:FacebookTwitterRedditdiggStumbleUpondeliciousHacker NewsLinkedIn

add a comment

© 2006 – 2012 Alan Edwardes / code on github
Top