安全模式..的mkdir [英] Safe mode.. mkdir

查看:193
本文介绍了安全模式..的mkdir的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个创建一个目录createddir,并设置chmod命令777脚本(只是为了本次测试真的..)

然后我要创建子文件夹,但随后的脚本失败。因为安全模式。

为什么我能够创建第一个文件夹呢?难道是因为文件夹现在已经从中通过FTP上传文件gallery.php不同不同的烫发?

有没有解决这个办法吗?这是销售的脚本,我不能要求人们简单地禁用安全模式作为自己的主机可能不允许的。

 警告命令mkdir()[function.mkdir]:实际上安全模式的限制。
该脚本的UID是10005不允许访问
在/ var / WWW /虚拟主机/ YYY / httpdocs资料/ ZZZ /文件/ createddir通过UID 33资
/var/www/vhosts/yyy/httpdocs/zzz/files/gallery.php线254


解决方案

有没有办法解决这个问题。结果
无论是把安全模式下关闭或创建FTP客户端这些文件夹

I have a script that creates a directory "createddir" and sets the chmod to 777 (just for this test really..)

I then want to create subfolders, but then the script fails. because of safe mode.

Why was I able to create that first folder then? Is it because the folder now has different perms different from the gallery.php file which was uploaded via ftp?

Is there any way around this? This is a script for sale, I cannot ask people to simply disable safe mode as their host may not allow that.

Warning: mkdir() [function.mkdir]: SAFE MODE Restriction in effect. 
The script whose uid is 10005 is not allowed to access 
/var/www/vhosts/yyy/httpdocs/zzz/files/createddir owned by uid 33 in 
/var/www/vhosts/yyy/httpdocs/zzz/files/gallery.php on line 254

解决方案

there is no way to solve it.
Either turn safe mode off or create these folders from FTP client

这篇关于安全模式..的mkdir的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆