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.

upload permissions using phpsuexec

Discussion in 'General Discussion' started by destr0yr, Mar 18, 2005.

  1. destr0yr

    destr0yr Well-Known Member

    Joined:
    May 4, 2004
    Messages:
    58
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Kelowna, BC.
    I searched, I couldn't find a definitive solution.

    Uploads using PHPsuExec work great, but the permissions are set to 0640 (or was it 0600...). I know I can add chmod to my scripts, however, I'd like some type of umask to set the file perms to 0644 or something to this effect. Is there a way to do this globally?
     
    #1 destr0yr, Mar 18, 2005
    Last edited: Mar 18, 2005
  2. fatepower

    fatepower Registered

    Joined:
    Nov 3, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    same for me mate. When i upload a image file with a php image upload script. The file permission in the photo folder get setted to chmod 600 but the files should get chmod 644 as when u upload with ftp. This cuase the error that the public users can't view the files cuz teh permissions is setted to chmod 600 :(
     
Loading...

Share This Page