Re: [OT] C7 and php mkdir

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Am 19.08.2015 um 13:54 schrieb Alessandro Baggi <alessandro.baggi@xxxxxxxxx>:
> Hi list,
> I've a problem using PHP mkdir() with apache on C7.
> I'm trying to create a directory under a specified directory in the tree of my vhost, and mkdir create this directory but when I try to create a file in this dir I get error on permission.
> For directory creation I use permission 0777 for max perms to ensure that it works but I get invalid perm:
> 
> dr----x--t. 2 apache apache  ...
> 
> I've tried also using:
> 
> $old = umask(0);
> mkdir....
> umask($old);
> 
> with result:
> 
> dr------wT. 2 apache apache  ...
> 
> 
> Tried also chmod with umask(), same result.
> 
> Selinux is disabled.
> 
> Can someone point me in the right direction?.



keyword octal : https://en.wikipedia.org/wiki/Umask

--
LF
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux