Page 1 of 1

Permissions/root problem

Posted: Mon Jun 06, 2005 1:06 pm
by filthyj
I was originally trying to figure out where to put my web pages so they would show up on http://localhost. I figured it out (/var/www) but apparently I don't have permission to do anything inside that folder. Also, I can't figure out where to change the settings if I want to set my root folder to a different folder - one that I have permission to work with. I can't find a regular "httpd.conf", either. The closest matches are:

httpd-std.conf.in
httpd-win.conf

And a file with the name "httpd.conf" but it's only like 5 lines and they're all commented out. It says it's only for backward compatibility.

I'm on Ubuntu Linux by the way, if that makes any difference.

Thanks,
Jason

Posted: Mon Jun 06, 2005 5:54 pm
by Skara
I'm kinda confused. It sounds like you just installed Ubuntu and are trying to get things up and running. If that's so, then you have root permissions. In a terminal, type

Code: Select all

su
<password>
chown <yourusername>:<yourusergroup> /var/www
I've only briefly worked with Ubuntu Live, so I don't know what it comes with, but try

Code: Select all

locate httpd.conf
# or
slocate httpd.conf
if that doesn't work,

Code: Select all

find -R / httpd.conf
though that last one will take a while. ^^;

You change your DocumentRoot inside httpd.conf.