Created
June 10, 2017 01:50
-
-
Save uniibu/20a8d00af9c112b20d943ec8cb9298b6 to your computer and use it in GitHub Desktop.
Install zeromq extenstion for plesk 12/onyx with php 7.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt-get update | |
apt-get install libzmq3-dev plesk-php70-dev libtool pkg-config build-essential autoconf automake | |
cd /tmp | |
wget -O zeromq4.tar.gz https://github.com/zeromq/libzmq/releases/download/v4.2.1/zeromq-4.2.1.tar.gz | |
tar -xf zeromq4.tar.gz | |
cd zeromq4 | |
./configure | |
make | |
sudo make install | |
sudo ldconfig | |
cd .. | |
git clone git://github.com/mkoppanen/php-zmq.git | |
cd php-zmq | |
/opt/plesk/php/7.0/bin/phpize | |
./configure --with-php-config=/opt/plesk/php/7.0/bin/php-config | |
make | |
sudo make install | |
ls -la /opt/plesk/php/7.0/lib/php/modules/ | |
echo "extension=zmq.so" >/opt/plesk/php/7.0/etc/php.d/zmq.ini | |
/usr/local/psa/bin/php_handler --reread | |
# service plesk-php70-fpm restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment