[英]PHP file upload on ubuntu server
I have my files uploaded on Ubuntu server. 我的文件已上传到Ubuntu服务器上。 Everything is working except file upload.
除了文件上传,其他一切都正常。
I have given the permission to all the files as 0644
and for the folders 0755
. 我已将所有文件和文件夹
0755
的权限设置为0644
。
As per the references i am supposed to change the folder permission to 0777
which i don't want to do. 根据参考,我应该将文件夹权限更改为
0777
,我不想这样做。
Is there any other way to enable file upload on ubuntu server without changing the permission from 0755
to 0777
? 还有其他方法可以在ubuntu服务器上启用文件上传而不将权限从
0755
更改为0777
吗?
Don't apply 777 permission to any of your files/folders in the server. 不要对服务器中的任何文件/文件夹应用777权限。
The files are not uploading mainly because of two reasons. 文件未上传的主要原因有两个。
This article will help to setup the proper file/folder ownership. 本文将帮助您设置适当的文件/文件夹所有权。
I hope this helps. 我希望这有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.