我正在使用 Codeigniter 的file helper类create和write文件。(用于记录)有没有一种方法可以在创建过程中以编程方式更改user:group这些apache:apache文件的。
ls -l
-rw-r--r-- 1 surjya goper 188 Oct 31 02:03 mylog.log
我在创建文件后尝试过php,chown command但它没有说“不允许”。这是因为php 只允许if您是超级用户。
任何解决此问题的方法将不胜感激。