Well, that might be a dumb way around it, but here goes ...
Something in the tool chain wants a home directory. Apache user does not have a home directory.
Apache2 www-data.
:
mkdir /home/www-data
chown www-data:www-data /home/www-data
Voila! .
, , .