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
Permissions/root problem
Moderator: General Moderators
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
I've only briefly worked with Ubuntu Live, so I don't know what it comes with, but try
if that doesn't work,
though that last one will take a while. ^^;
You change your DocumentRoot inside httpd.conf.
Code: Select all
su
<password>
chown <yourusername>:<yourusergroup> /var/wwwCode: Select all
locate httpd.conf
# or
slocate httpd.confCode: Select all
find -R / httpd.confYou change your DocumentRoot inside httpd.conf.