Permissions/root problem

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
filthyj
Forum Newbie
Posts: 4
Joined: Sat Jun 04, 2005 7:09 pm

Permissions/root problem

Post 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
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post 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.
Post Reply