Skip to main content

Subdomain permission problem with upload

Comments

5 comments

  • cPanelLauren
    Hi @Mr.Novo Can you show the specific error you're receiving?
    0
  • Mr.Novo
    Hi, Simple php upload script runs under a subdomain like up.domain.com throws permission denied error when target folder is chmod 755 Warning: move_uploaded_file(uploads/1530201017.jpg): failed to open stream: Permission denied in /home/wp4/public_html/imgupload/index.php on line 28 Warning: move_uploaded_file(): Unable to move '/tmp/phpcjiNRR' to 'uploads/1530201017.jpg' in /home/wp4/public_html/imgupload/index.phpon line 28 Its fine when working under domain.com/up If i change folder to 777 and try to upload from up.domain.com, uploded file is owned by "nobody".
    0
  • Mr.Novo
    I think php handler (using cgi atm) causing this problem. But why with subdomains only ? Or was it always like that i wonder.
    0
  • Mr.Novo
    Switched to SuPHP that solved the problem :)
    0
  • cPanelLauren
    HI @Mr.Novo Thanks for letting us know, I'm glad you were able to find a solution to the issue.
    0

Please sign in to leave a comment.