resolv.conf should exist before configuring nginx-repo
php-fpm uses the www-data user and group, require it
Require php-fpm package in ImageMagick installation
Reorder ImageMagick installation to occur before php-fpm init