in reply to Re: Re: Why does this crash? (Error 500)
in thread Why does this crash? (Error 500)
You need 777 if you just want it to work!
4 Read 2 Write 1 Execute ie 5 = R+X (4+1) 6 = R+W (4+2) 7 = R+W+X (4+2+1) 7 5 5 owner group everyone-else
Your CGI will run as the user apache or nobody. So for your script to write to a dir user apache/nobody needs to be able to WRITE to the dir (it will probably be falling into the everyone-else user cat). Assuming you own it (the 7) you either need to change the ownership and or the perms. Something like this will work: chmod -R 777 /path/to/dir/ but is pretty crude. You probably want something like chown you:nobody /path/to/dir && chmod 775 /path/to/dir which will make you the owner, nobody (or apache if req) the group and then give the group write perms. You may want 770 if the data is senstive.
Oh, and the usual text message you have in a die_nice goes like ;-)
Sorry the system is currently unable to fulfil you request due to: 1) Routine Maintenance 2) Unusually high load 3) Transient network hiccups and miscalaneous flatulence 4) Being on strike cause of the 24/7 working hours, low pay and total lack of appreciation from my programmers. .....
cheers
tachyon
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Why does this crash? (Error 500)
by sgifford (Prior) on Jan 02, 2004 at 16:42 UTC | |
by Anonymous Monk on Jan 02, 2004 at 18:03 UTC | |
by tachyon (Chancellor) on Jan 03, 2004 at 04:35 UTC | |
by sgifford (Prior) on Jan 03, 2004 at 06:45 UTC | |
|
Re: Re: Re: Re: Why does this crash? (Error 500)
by Anonymous Monk on Jan 02, 2004 at 12:22 UTC |