I am using Filezilla for accessing my website files.But some files/folders permissions are not allowing to change in FTP.because their owner and group name is different (i.e apache/apache).So I want to change it from apache/apache to xyz/abc.Any helps ?
Thanks
2
Answers
Try using chown function provided in php http://php.net/manual/en/function.chown.php
You can use the
chown
php command for this:$filename
is the path to the filename$user
is the user name or idThis function returns false, if the operation is not successful.
More info :
You can read more about this function here:
http://php.net/manual/en/function.chown.php
Couple remarks: