Learning, Linux

Installing and Configuring Lampp (the simple guide)

Installing and Configuring Lampp (the simple guide)

I find this article when i’m going to install LAMPP on Ubuntu Intrepid from many forum and site this is the clear and good article for beginner ubuntu user.

http://alanedwardes.com/posts/installing-and-configuring-lampp-the-simple-guide/comment-page-1/#comment-8423

Lets get started:

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 1024×768, 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.

2 thoughts on “Installing and Configuring Lampp (the simple guide)

  1. i am a newbie in linux/ubuntu your method works perfectly.

    most sites missed that Desktop (ie in sudo tar xvfz Desktop/xampp-linux-1.6.4.tar.gz -C /opt) as i put lampp on my desktop.It seem they just copy and paste or dont bother to tell where to put lampp in their command ie sudo tar xvfz xampp-linux-1.6.4.tar.gz -C /opt.

    thanks again.

Comments are closed.