Mots likely you used a wrong php-fpm port. Ecah website has its own php-fpm instance which uses its own port. If you use a different port, then php runs under a wriong user and you cant use functions that need to store data on the harddisk in php.