Error uploading files with php

Discussion in 'Programming/Scripts' started by rutame, Sep 29, 2008.

  1. rutame

    rutame Member

    Hello to everybody.

    A littler time ago i had made an script for upload files but now does not work. I get this error message:
    This is the first error:
    Warning: move_uploaded_file(subidos/imagenes/huawei.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /var/www/web2/web/actualizadoc.php

    I changed the permisions for the destination directory to 777 althought with a 666 i think is enought.

    My system is a ubuntu server 8.04 with ispconfig (a few days ago all were working fine but i had make a new installation)

    Thank you
  2. rutame

    rutame Member

    It is fix it. Althought i changed the permissions in subdirectory only works if the permissions has been changed in the /web directory the way recursive. When i make that all become to fine.

    Thank you again

Share This Page