Konfiguration and installation Mosquitto PHP Library

wget http://repo.mosquitto.org/debian/mosquitto-repo.gpg.key

sudo apt-key add mosquitto-repo.gpg.key

cd /etc/apt/sources.list.d/

sudo wget http://repo.mosquitto.org/debian/mosquitto-jessie.list

sudo apt-get update

apt-get install mosquitto

sudo apt-get install mosquitto-clients

sudo apt-get install php5-dev

sudo apt-get install libmosquitto-dev

sudo pecl install Mosquitto-alpha

and create mosquitto.ini in path /etc/php5/mods-available

add this code in /etc/php5/mods-available/mosquitto.ini


this code for check version of the Mosquitto library

dpkg -l | grep mosquito