Permission error on server

Asked

Viewed 166 times

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 already put the following commands in 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??

Thanks in advance.

1 answer

0

You must give permission in the directory 'upload/Papercutmf15-Pet Center Comercio e Participacoes S.A., BR.Icense' not only in the file.

chmod 755 <upload-dir>
  • Preferably search if there are already answers on the site, because if there are several questions on the same subject and spread, the idea is to favor the existing answers and questions that solve the subject of duplicates.

  • This "file" would be php file, or the folder with the file?

  • try to do the following:

  • Access the server via command line. Go to the directory that is the folder "upload". Ai type chmod 755 -R upload

Browser other questions tagged

You are not signed in. Login or sign up in order to post.