直接编辑www的user

  1. sudo vim /etc/php-fpm.d/www.conf

把里面的user和group改下:

  1. ; Unix user/group of processes
  2. ; Note: The user is mandatory. If the group is not set, the default user's group
  3. ; will be used.
  4. ; RPM: apache Choosed to be able to access some dir as httpd
  5. user = vagrant
  6. ; RPM: Keep a group allowed to write in log dir.
  7. group = vagrant

然后重启php-fpm

  1. sudo systemctl restart php-fpm

分类: web

标签:   vagrant