Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cPanel installation #104

Open
zstergios opened this issue May 15, 2019 · 2 comments
Open

cPanel installation #104

zstergios opened this issue May 15, 2019 · 2 comments

Comments

@zstergios
Copy link

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:https://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

[root@server /]# find / -name "libmosquitto*"
/usr/share/cagefs-skeleton/lib64/libmosquittopp.so.1
/usr/share/cagefs-skeleton/lib64/libmosquitto.so.1
/usr/share/cagefs-skeleton/usr/lib64/libmosquittopp.so.1
/usr/share/cagefs-skeleton/usr/lib64/libmosquitto.so.1
find: ‘/usr/share/cagefs-skeleton/proc/sys/fs/binfmt_misc’: Too many levels of symbolic links
/usr/lib64/libmosquittopp.so.1
/usr/lib64/libmosquitto.so.1

None path worked for me.

ANY HELP PLEASE??!!

@zstergios
Copy link
Author

zstergios commented May 15, 2019

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

@zstergios
Copy link
Author

I would like to know if the service "mosquitto" is needed or not

@zstergios zstergios reopened this May 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant