Open zstergios opened 5 years ago
Solved!
Centos - cPanel Installation Guide
yum install mosquitto-devel /opt/cpanel/ea-php71/root/usr/bin/pecl install Mosquitto-alpha
Then add extension=mosquitto.so to your php.ini. If you have cPanel/WHM go to WHM> MultiPHP INI Editor > Editor Mode
Service start and auto-startup systemctl start mosquitto systemctl enable mosquitto
I would like to know if the service "mosquitto" is needed or not
yum install mosquitto
Package mosquitto-1.5.8-1.el7.x86_64 already installed and latest version
/opt/cpanel/ea-php71/root/usr/bin/pecl install -f channel://pecl.php.net/Mosquitto-0.4.0
Response `WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
Please provide the prefix of the libmosquitto installation [autodetect] : /usr/share/cagefs-skeleton/usr/lib64/libmosquittopp.so.1 building in /root/tmp/pear/pear-build-rootcwYqYe/Mosquitto-0.4.0 running: /root/tmp/pear/Mosquitto/configure --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config --with-mosquitto=/usr/share/cagefs-skeleton/usr/lib64/libmosquittopp.so.1 ............... checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for mosquitto support... yes, shared checking for mosquitto files in default path... not found configure: error: Please reinstall the mosquitto distribution ERROR:
/root/tmp/pear/Mosquitto/configure --with-php-config=/opt/cpanel/ea-php71/root/usr/bin/php-config --with-mosquitto=/usr/share/cagefs-skeleton/usr/lib64/libmosquittopp.so.1' failed
I'm using CENTOS 7 with CPanel
None path worked for me.
ANY HELP PLEASE??!!