7

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?

3
  • You want instructions for installing Ubuntu too?? here is the link...askubuntu.com/questions/138234/…
    – Nirmik
    May 18, 2012 at 0:02
  • 2
    possible duplicate of What's the easiest way to set up a LAMP stack? May 18, 2012 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, 2012 at 15:26

3 Answers 3

7

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.

1
  • 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. Jun 16, 2012 at 1:03
3

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.

0
0

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,

2
  • 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, 2012 at 15:23
  • Note: This installs MySQL and PHP on top of Apache. Jan 17, 2016 at 22:32

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .