简体   繁体   English

像Drupal和Wordpress一样,如何更改哪个user:group apache / php上传文件?

[英]How to change which user:group apache/php uploads files as in Drupal and Wordpress?

I am trying to figure out how to change how files are uploaded on both my Drupal and Wordpress installs on the same server. 我试图弄清楚如何更改在同一服务器上的Drupal和Wordpress安装中上传文件的方式。 The files are being saved with the Apache user and Apache group, but I want them to be saved with the default FTP account and Apache group, this way they will correspond to the recommend settings by both blog systems. 这些文件是使用Apache用户和Apache组保存的,但是我希望使用默认的FTP帐户和Apache组保存这些文件,这样它们将与两个博客系统的建议设置相对应。

This is how it is uploading now: 现在是这样上传的:
-rw-rw---- 1 wwwrun www 94144 Aug 11 10:17 image.jpg -rw-rw ---- 1 wwwrun www 94144 8月11日10:17 image.jpg

Like it to be: 喜欢它是:
-rw-rw---- 1 useracct www 94144 Aug 11 10:17 image.jpg -rw-rw ---- 1 useracct www 94144 8月11日10:17 image.jpg

I know the permissions are being set by a php script inside Wordpress based on the parent folder permissions, but not sure where the user:group is being set. 我知道权限是根据父文件夹权限由Wordpress内的php脚本设置的,但不确定在哪里设置user:group。

使用php-fpm + mod_proxy_fcgi在您喜欢的任何用户(useracct)下在httpd进程之外运行PHP内容

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM