Web Hosting Talk







View Full Version : Fresh install redhat 6.2 question (APACHE)


hvdm_20
07-20-2001, 04:37 PM
normal i see a list if i go to a site where there are no files

but i did a fresh install

and if i go to

http://moc.ws-dns.com/

i only see a forbidden page

how must i change this

please i need to know this asap...

thank you...

hvdm_20
07-20-2001, 04:58 PM
server is down

but if i connect to the domain above i only receive a forbidden page if i dont upload a index file

i want a empty list or a list with another files in that dir

thank you...

Eagle
07-20-2001, 05:08 PM
hmm try chmodding it 644 (the dir) and chown nobody.groupname

or something like that
or httpd instead of nobody.

allera
07-20-2001, 06:21 PM
Originally posted by Eagle
hmm try chmodding it 644 (the dir) and chown nobody.groupname
A directory has to be chmod'd at least 555 (I believe) in order to get to it in Apache. Forbidden errors are more often than not permisisons problems, either a directory starting from / is not world executable, or the index file isn't world readable.

hvdm_20
07-20-2001, 06:57 PM
but i can access the files in the folders
thats the strange thing

Eagle
07-20-2001, 07:24 PM
Originally posted by allera

A directory has to be chmod'd at least 555 (I believe) in order to get to it in Apache.


4 - Readable
2 - Writable
1 - Executable

5 = 4+1

644 = user,group,other
user=write+read
group=read only
other=read only

SHOULD work fine..... (644)

Eagle
07-20-2001, 07:25 PM
HVDM_20

contact me on herps@ewsnl.com

I'll see what I can do for you, ok?

allera
07-20-2001, 07:39 PM
Originally posted by Eagle
SHOULD work fine..... (644)
I know how chmod works. A directory has to be executable to get into it. Apache won't let you do anything unless the directory is executable. Try setting a directory to 644 and then trying to access it via a web browser. You'll get a forbidden error. At least I do. :)

Assuming nobody does not own anything, the directory must be:
At least 555 to access a file listing of a directory (no index.html)
At least 111 to access any file inside the directory (so long as the file itself has read permissions for the world)

Eagle
07-20-2001, 07:41 PM
Hmm I always chmod them 755 so you MIGHT be right...

Also depends on the RH version...RH7 is totally different from 6.2

allera
07-20-2001, 07:44 PM
Originally posted by Eagle
Also depends on the RH version...RH7 is totally different from 6.2
Unix/Linux is Unix/Linux. The day the developers of the kernels start redoing how permissions work is the day security has been compromised and the OS is totally useless. Permissions in RH 7.0 must be the same (at least the base functionality of chmod) as RH 6.2. It must. Too many things are at stake.

Eagle
07-20-2001, 07:45 PM
thats not what I mean

I noticed sendmail works different on RH7....Stuff like that

allera
07-20-2001, 07:53 PM
Hehe, what does sendmail have to do with the price of tea in china? Nothing. :) Just because Sendmail is different in RH 7.0 than in RH 6.2 doesn't mean the permissions change. :) Bottom line, a directory MUST be executable (that world 1 (x) flag set (unless owned by Apache's user)) in order for Apache NOT to return a Forbidden error.

Eagle
07-20-2001, 07:56 PM
nevermind

you dont get my point

Honu
07-20-2001, 08:18 PM
Aloha

(slight off topic sorry)
seems to be that a lot of people have said that 7.1 is more secure than 6.2 which had a lot of holes in it
others can jump in and give there pennies but ya might check it out ;)