I have tried to install a LAMP server 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 get:

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.

link|improve this question

57% accept rate
feedback

migrated from stackoverflow.com Jun 22 '10 at 17:32

This question came from our site for professional and enthusiast programmers.

2 Answers

Sounds like you're missing an index.html file. Ubuntu's Apache install defaults to not enabling Options +Indexes, so you have to have an index document.

link|improve this answer
feedback

But

apt-cache search lamp-server

returns nothing. What made you think there was such a package?

link|improve this answer
But there is: I typed: sudo apt-get install lamp-server^ and there is a big long 73MB installation. – codedude Jun 22 '10 at 17:30
I never heard of this package too... I usually install the LAMP stack throug the Package Manager / Edit / Mark Packages by Task / LAMP Server – Gabe Jun 22 '10 at 17:31
If he's getting a 403, a webserver is installed, so the installation step isn't really the issue. His Ubuntu install might've already had Apache installed properly. – ceejayoz Jun 22 '10 at 17:39
1  
While strange, if you type the command the OP did, you wind up with a meta-package which does include apache2, mysql, and php. There is clearly such a package. (note the ^ on the end is key) – Darth Android Jun 22 '10 at 18:49
feedback

Your Answer

 
or
required, but never shown

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