Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 05-08-2004, 11:04 AM   #1 (permalink)
I am not permanent.
 
glytch's Avatar
 
Location: Tennessee
Alright, for anyone who knows anything about Apache...

Hey all, It's time for another one of glitch's (probably obvious) questions.

I set up an old computer running RH9 (I had it laying around, and thought "why not?"). I've configured it to handle ssh, ftp, and httpd for now. I know this works because others can connect and see my default webpage. They can see the page just fine if I do anything simple ("server test", a simple php line, etc), but when I try to import pages I've done in the past, I get an Error 403, access denied, or unreadable by the server message. I doubt it's access problems, so my question is, why would Apache not be able to read this file? Do I need some sort of module or something?

Any info would be greatly appreciated, and thanks in advance.
__________________
If you're flammable and have legs, you are never blocking a fire exit. - Mitch Hedberg
glytch is offline  
Old 05-08-2004, 11:08 AM   #2 (permalink)
Junkie
 
HarmlessRabbit's Avatar
 
Location: San Jose, CA
probably ownership issues.

check the ownership of the small files you created:

ls -l *

note the ownership of those files against the ones that aren't working.

use chown to change the ownership. Usually, you want apache files to be owned by the "www" group.

chown yourname:www *
HarmlessRabbit is offline  
Old 05-08-2004, 11:10 AM   #3 (permalink)
Thats MR. Muffin Face now
 
losthellhound's Avatar
 
Location: Everywhere work sends me
apache should have access, check chown and chmod.. make sure root doesnt own the file, and make sure the file isnt locked down
__________________
"Life is possible only with illusions. And so, the question for the science of mental health must become an absolutely new and revolutionary one, yet one that reflects the essence of the human condition: On what level of illusion does one live?"
-- Ernest Becker, The Denial of Death
losthellhound is offline  
Old 05-08-2004, 01:54 PM   #4 (permalink)
I am not permanent.
 
glytch's Avatar
 
Location: Tennessee
Wow, you guys are great. I didn't even think about that, thanks a ton.

Quick question: Would it be okay to make apache the owner of the files? (the apache user, I mean.)
__________________
If you're flammable and have legs, you are never blocking a fire exit. - Mitch Hedberg
glytch is offline  
Old 05-08-2004, 10:00 PM   #5 (permalink)
Irresponsible
 
yotta's Avatar
 
Re: Alright, for anyone who knows anything about Apache...

Quote:
Originally posted by glytch
Hey all, It's time for another one of glitch's (probably obvious) questions.

I set up an old computer running RH9 (I had it laying around, and thought "why not?"). I've configured it to handle ssh, ftp, and httpd for now. I know this works because others can connect and see my default webpage. They can see the page just fine if I do anything simple ("server test", a simple php line, etc), but when I try to import pages I've done in the past, I get an Error 403, access denied, or unreadable by the server message. I doubt it's access problems, so my question is, why would Apache not be able to read this file? Do I need some sort of module or something?

Any info would be greatly appreciated, and thanks in advance.
You probably need to set the execute bit. Also, don't use RedHat 9. It no longer gets security updates.
__________________
I am Jack's signature.
yotta is offline  
Old 05-08-2004, 11:45 PM   #6 (permalink)
Junkie
 
HarmlessRabbit's Avatar
 
Location: San Jose, CA
Quote:
Originally posted by glytch
Wow, you guys are great. I didn't even think about that, thanks a ton.

Quick question: Would it be okay to make apache the owner of the files? (the apache user, I mean.)
if you look at your /etc/httpd.conf file, you should see the user and group assigned to apache. It's best to make the files owned by the apache group (usually called "www") rather than the apache user.

In apache 2 the group is "www-data".

The apache user may have permission to execute certain files, so it's best not to make stuff in your document root owned by that user.
HarmlessRabbit is offline  
 

Tags
alright, apache


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 12:33 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73