Run cache warmup as the same user as php-fpm.
Make sure that php-fpm can write to the log fifos (user = nobody)
Removed comment as per feedback from @stof
Change the owner of the logs directory to that of php-fpm
Change the owner of the cache directory to that of php-fpm