Permission error on server [duplicate]

0
Warning: move_uploaded_file(upload/PaperCutMF15-Pet Center Comercio e Participacoes S.A., BR.license): failed to open stream: Permission denied in /var/www/ecoprintq.com.br/public_html/portal/intranet/classes/Upload.php on line 40

Warning: move_uploaded_file(): Unable to move '/tmp/phpy3gdPW' to 'upload/PaperCutMF15-Pet Center Comercio e Participacoes S.A., BR.license' in /var/www/ecoprintq.com.br/public_html/portal/intranet/classes/Upload.php on line 40

Warning: copy(0): failed to open stream: Permission denied in /var/www/ecoprintq.com.br/public_html/portal/intranet/classes/ManipularArquivos.php on line 23

I have already put the following commands in the php code

chmod("arquivo",750);
chmod("arquivo",755);

They tried to change the permission manually, by filezilla, and also did not hear success.

Is there any other alternative?

Thank you in advance.

    
asked by anonymous 18.11.2016 / 14:56

1 answer

0

You have to give permission in the directory 'upload / PaperCutMF15-Pet Center Commerce and Participacoes S.A., BR.license' not only in the file.

chmod 755 <upload-dir>
    
18.11.2016 / 15:18