PDA

View Full Version : [wubi] Problems installing LAMP in Ubuntu 11.04



_Cathy_
July 11th, 2011, 04:52 PM
Hi there.

I am trying to install LAMP, but am running into a few problems.

I used this first

sudo apt-get install lamp-server^

and that works fine as far as i can see - I get a message saying "It works" when I go to localhost in a browser.

However, now I want to test the PHP, and it is not allowing me to save any files in /var/www/. When I try to, it just says "Permission Denied"

I know (and hope) this is probably quite simple to solve, but its stopping me from doing anything! Any advice would be really appreciated :)

1 clue is enough
July 11th, 2011, 05:15 PM
Change ownership permissions on this directory.

In a Terminal window type:

sudo chown yourusername /var/www
sudo chgrp yourusername /var/www

Enter your password when requested.
it should fix ur problem..now u can copy and paste ur files in that folder.

_Cathy_
July 11th, 2011, 05:24 PM
Change ownership permissions on this directory.

In a Terminal window type:

sudo chown yourusername /var/www
sudo chgrp yourusername /var/www

Enter your password when requested.
it should fix ur problem..now u can copy and paste ur files in that folder.

thanks for the reply. What exactly do those commands do?

1 clue is enough
July 11th, 2011, 05:51 PM
chown changes the user and/or group ownership of each given file or folders.
type 'man chown' in terminal for more....