Cant delete after unzip

Discussion in 'Installation/Configuration' started by fregl k, Aug 12, 2006.

  1. fregl k

    fregl k New Member

    Hey guys,

    i have the ISPC 2.2.5 installed and averything is working great.

    There is one thing though. But i dont know if its ISPC related, but it might be.

    I made this php script that uploads, moves and unzips a zipfile
    to a folder created by php. the script works fine.

    but when i later try to delete the folder/files that were created. i get
    a permission ftp error.

    can it be that the files are created by php by the root user, and a web user
    cant delete them anymore?

    Hope you get where im going here.

    Greets,
    Fregl
     
  2. Ben

    Ben ISPConfig Developer ISPConfig Developer

    Yes its a permission error.
    So you should chmod the files after generating them, same for the directory your script generates or better try to do a chown on that dir / files to the ftp user.

    An alternative would be switching to suPHP
     

Share This Page