PDA

View Full Version : [SOLVED] Apache2


will12
October 16th, 2007, 01:08 AM
I am very new to the world of web servers, or servers in general. I am trying to set up my apache2 server, and learn php at the same time. I need to know how to save php files in the /var/www file. Every time that I try to save the file in that folder I get a message that says that I don't have permission to save things here.

Anything that you can tell me to help me save my files in that file would be greatly appriciated.

Cheers

conjur3r
October 16th, 2007, 03:56 AM
You will need to allow yourself permissions to write to files within that folder. Open up a terminal and issue the following command replacing YOUR_USERNAME:

# sudo chown -R YOUR_USERNAME /var/www