The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

permission 777 captcha

Discussion in 'General Discussion' started by mojamoi, Jan 21, 2014.

  1. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  2. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    What do you mean by "captcha needs 777"?
     
  3. mojamoi

    mojamoi Well-Known Member

    Joined:
    Jul 23, 2007
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    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
     
    #3 mojamoi, Jan 21, 2014
    Last edited: Jan 21, 2014
  4. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    For my opinion you should NOT run any code that needs 777 permissions.
     
  5. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    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!
     
  6. ThinIce

    ThinIce Well-Known Member

    Joined:
    Apr 27, 2006
    Messages:
    346
    Likes Received:
    7
    Trophy Points:
    18
    Location:
    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.
     
Loading...

Share This Page