centos上百度编辑器下传后的图片权限为600不可读

WBOY
Release: 2016-06-13 12:55:31
Original
1124 people have browsed it

centos下百度编辑器上传后的图片权限为600不可读
我用的系统是shopex+centos,在后台上传商品图片是没任何问题的。前台自定义嵌入了一个百度编辑器http://www.tanliwa.cn/2.html,在这个编辑器里面点击上传文件,文件上传成功,FTP也可以看到了,点击编辑器的源码可以看见图片地址,但是因为上传的图片权限是600,所以没任何显示。

请教怎么能给正常显示呢,所有的文件夹和文件都用chmod -R 777 /var/home/html设置了777权限,对liunx权限不太懂,希望懂的朋友指点一下。


------解决方案--------------------
你的命令是对的额,

如果不行,看看你的目录是不是 /var/home/html;

否则试试chown,chown用法baidu
------解决方案--------------------
我也想解决这个问题!
------解决方案--------------------
这个要修改编辑器对应的后端代码。家里没环境,具体在哪明天回公司(如果我还记得)帮你看看
------解决方案--------------------
本帖最后由 PhpNewnew 于 2012-12-07 09:09:15 编辑 在图片显示的时候先做chown 也就是修改图片的权限.当然修改前先检查是否已经具备权限了
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!