How have you installed Mosquitto? There was some discussion a while back about the best way (search on PECL and mosquitto).
This instruction is aimed at the Pi but may well be OK for a Debian install.