0

I have tried to install a lamp sever on my ubuntu 10.04 (home) installation by typing this into the terminal:

sudo apt-get install lamp-server^

However, afterwards, when I point my browser towards http://localhost I geta 403 Forbidden error. I tried multiple times to change the permissions of the /var/www/ folder by right clicking it and setting the permissions to read and write for my user, but it just goes back to what it was after I close the options window.

HELP

codedude
  • 117
  • 1
  • 1
  • 6
  • What do you expect instead of the error 403 when loading `http://localhost/`? Have you placed any files into the directory `/var/www/`? – joschi Jun 23 '10 at 07:54

3 Answers3

1

Take a look at the chapter about Apache httpd in the Ubuntu Server Guide. It describes the setup fairly well and should answer your questions.

The error 403 when browsing http://localhost/ suggests that there is no index.html in /var/www and that Options +Indexes is not set.

joschi
  • 21,387
  • 3
  • 47
  • 50
0

LAMP Setup try above link its work

Rajat
  • 3,349
  • 22
  • 29
0

I think you want to use tasksel instead for the package.

sudo tasksel install lamp-server

Then check if your apache is running with the following:

sudo /etc/init.d/apache2 status

More docs to read here: https://help.ubuntu.com/10.04/serverguide/C/httpd.html

wag2639
  • 2,145
  • 6
  • 24
  • 33
  • `apt-get install lamp-server^` is the same as `tasksel install lamp-server`. Just look at the output of `tasksel -t install lamp-server`. – joschi Jun 23 '10 at 07:52
  • Those were the instructions from the Ubuntu Community help page: https://help.ubuntu.com/community/ApacheMySQLPHP – wag2639 Jun 23 '10 at 13:39