简体   繁体   中英

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. 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.

This is how it is uploading now:
-rw-rw---- 1 wwwrun www 94144 Aug 11 10:17 image.jpg

Like it to be:
-rw-rw---- 1 useracct www 94144 Aug 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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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