简体   繁体   中英

Laravel Log Files - Permissions Issue

I had used Laravel Forge to spin up a server, and adjusted some of the provisioning to my needs.

Forge creates a sudo-privileged nginx user named forge .

I made a user called deploy with sudo privileges, and changed nginx to use this user.

The app functions fine however, anytime Laravel writes to a log file (laravel.log, my-custom-log.log, etc) it says the user is forge and the group is deploy .

Any ideas on why Laravel may still be defaulting to that User even though nginx is using a different user?

Turns out that PHP-FPM was defaulting to to user:group forge:forge. I was able to change this in /etc/php/7.0/fpm/pool.d/www.conf

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