Install everything with sudo and chown it to www-data user.