[英]PHP Warning: mkdir(): Permission denied in Seperate filesystem
This may or may not be a duplicate question, partly because the destination folder it's trying to write to, is on a Windows filesystem. 这可能是重复的问题,也可能不是重复的问题,部分原因是它试图写入的目标文件夹位于Windows文件系统上。 I have a script which has a mkdir php function in it, which is trying to create a folder and a file to a mounted windows file system.
我有一个脚本,其中包含mkdir php函数,该脚本试图创建一个文件夹和一个文件到已安装的Windows文件系统。
Permission on the file 文件权限
-rwxrwxrwx. -rwxrwxrwx。 1 apache apache 24850 Jan 6 11:31 fns.php
1 apache apache 24850 1月6日11:31 fns.php
Permission on the folder is 该文件夹的权限为
drwxr-xr-x. 8 a-linux-user root 0 Dec 29 15:55 ACT!
I have the file system mounted on /media/shared 我在/ media / shared上挂载了文件系统
I'm getting a mkdir(): Permission denied error
. 我收到了
mkdir(): Permission denied error
。 I was wondering where I should start debugging the issue. 我想知道应该从哪里开始调试问题。
My httpd.conf file has this permission: 我的httpd.conf文件具有此权限:
User apache
Group apache
the line or the fstab is 该行或fstab是
//domain.com/shared /media/shared cifs uid=a-linux-user,credentials=/home/some-dir/.creds,domain=GRM,comment=systemd.automount 0 0
Edit your apache -> conf -> httpd.conf file & change User and Group from daemon to your machine owner name. 编辑您的apache-> conf-> httpd.conf文件,并将“用户和组”从守护程序更改为您的计算机所有者名称。 (in your case: a-linux-user) See if that works.
(在您的情况下:a-linux-user)查看是否可行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.