mojamoi

Well-Known Member
Jul 23, 2007
195
0
66
Hi

We get 500 internal server error when permission 777 given to a file

but captcha needs 777 how can i allow it without getting 500 error?
 

mojamoi

Well-Known Member
Jul 23, 2007
195
0
66
a php page running teh capthcha code will run only with 777 permission

it wont work with less permission


but the server gives 500 error on such pages
 
Last edited:

quietFinn

Well-Known Member
Feb 4, 2006
1,905
467
438
Finland
cPanel Access Level
Root Administrator
For my opinion you should NOT run any code that needs 777 permissions.
 

Eric

Well-Known Member
Nov 25, 2007
754
14
143
Texas
cPanel Access Level
Root Administrator
Twitter
Howdy,

What php handler are you using? It's likely suphp, and if that case try 644 then 755. If the php processes are running as user's not apache or nobody that should be more than enough. Anything that *needs* 777 that isn't /tmp is going to lead to tears.

Thanks!
 

ThinIce

Well-Known Member
Apr 27, 2006
352
9
168
Disillusioned in England
cPanel Access Level
Root Administrator
To clarify - suphp will specifically refuse to execute 777 files per EasyApache: PHP Request Handling

As quietfinn and Eric have suggested, if your script won't work with lesser permissions under suphp and the docs specifically demand it without any caveat, then it's highly possible it's either a very old script, or a crap script or both and you'd be better off with another solution.