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?

Jorge Castro
  • 73,717

3 Answers3

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.

Rinzwind
  • 309,379
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.

Eliah Kagan
  • 119,640
Alvar
  • 17,038
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,

Eliah Kagan
  • 119,640