Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I have decided to build a Ubuntu computer, for now I am going to dual boot with Win7, and then install apache web server. Figured I would give the whole web thing a try. Did some searching but didn't find something powerful enough, I will continue searching as I am sure there is a multitude of items on here... but one quick question.

Has anyone installed Ubuntu desktop, and then apache web server ? Was it easy to do?

share|improve this question
You want instructions for installing Ubuntu too?? here is the… – Nirmik May 18 '12 at 0:02
possible duplicate of What's the easiest way to set up a LAMP stack? – Jorge Castro May 18 '12 at 3:02
goodness, i installed Ubuntu 2x on my PC, first time it only was able to read an external drive, couldn't boot to it. So I disconnected all USB drives and booted to my CD again.... it finally saw my hd so i installed it along side windows, on a reboot.... went straight into Windows... geez a little frustrating especially since it took like 30 mins for each installation. What the heck... bbllahhhh – pewterss May 19 '12 at 15:26

Very very very very easy. Besides installing apache by itself with

sudo apt-get install apache2

you can do even more since you might want to install Perl for coding on the server and MySQL for database storage. So Ubuntu comes with a tool that can set up a complete LAMP server with 1 installation.

sudo apt-get install tasksel

and then run tasksel as superuser

sudo tasksel

Choose the option LAMP installation and you will get a pre-configured(!) Apache, MySQL and Perl installation. All you need is a root password for MySQL.

Shorter version:

sudo apt-get install lampserver^

No more need for "tasksel" since the ^ is now used to tell "apt-get" it is a "task" that needs to be installed.

share|improve this answer
Please note that sudo apt-get update should be run before sudo apt-get install ... unless it's been run very recently. apt-get update doesn't upgrade any packages, rather it updates information about what packages are available and from what software sources, so that your system asks for and gets the right packages when you install or upgrade. – Eliah Kagan Jun 16 '12 at 1:03

Yes. Just run sudo apt-get update followed by sudo apt-get install apache2 in a terminal. Or search for it in the Software Center.

share|improve this answer

Very easy.
Fire up your terminal, then type:

sudo apt-get update
sudo apt-get install apache2 php5 mysql-server mysql-client

If you don't need php5 or mysql, just type sudo apt-get install apache2 in place of that second command,

share|improve this answer
ok good to know, but i think I will need or want to test php, and mysql out for something i got planned. thank you. – pewterss May 19 '12 at 15:23
Note: This installs MySQL and PHP on top of Apache. – David Foerster Jan 17 at 22:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.