5

I've already seen a similar question that was closed as a duplicate of this (What's the easiest way to set up a LAMP stack?) However no where in that Q&A does it answer the question.

A little background: I have a 2007 laptop with dual core 2GHz CPU and 4 GB Ram. I want to repurpose as a web server and it already has Ubuntu 14.04 LTS Unity DE installed on it. I'm not terribly keen on installing Server Edition. Before someone says "it'll be too slow" my ISP limits uploads to 500 Kbps on my plan, even though downloads are 15 Mbps which suffices. Additionally I'll be the only person using the webserver (possibly NSA too) so speed isn't critical.

I know people will through in opinions on which is better and that is fine but I really just want to know if anything will break when I type:

sudo apt install lamp-server^

on my laptop.

Thanks!

3 Answers3

6

No, Ubuntu Server is not needed.

You can very easily install all of the required packages for a LAMP server from Ubuntu Desktop. In fact, most web developers use this exact setup to test things!

As mentioned in the question you linked, you can install a LAMP stack with two commands:

sudo apt-get install tasksel
sudo tasksel install lamp-server

You may need to check some other things to make sure that there's nothing else bound on any ports, but (typically) there are no additional steps that are needed. If you want to access your server from the world, you need to set up port-forwarding and probably unblock port 80/443 in your firewall.

However, if you're running a LAMP server on your own system, it is highly recommended to run a firewall on your upstream router or your machine itself, as well as working through (at least, partially) the Ubuntu Wiki's Security guide. LAMP is not the most secure thing in the world. It's important to set up some best-practice topics to make sure your system stays safe, as well.


As mentioned in your question, you can also install the LAMP stack using:

sudo apt install lamp-server^

If you want to determine what packages will be installed/altered (just to be safe), you can run the above command with the -s flag to simulate what will happen to your system.

Kaz Wolfe
  • 34,680
0

You can install LAMP on Ubuntu desktop. I was running LAMP and Moodle on top of Ubuntu 14.04 desktop. Worked fine.

0

From the terminal run sudo tasksel , choose LAMP server then validate with OK

Is Ubuntu Server required for LAMP server or will anything break if I install LAMP on Ubuntu Desktop?

You don't need to install the Ubuntu server , If you want to install it run sudo tasksel then scroll down and select Basic Ubuntu server

GAD3R
  • 3,748