Created
December 9, 2015 14:37
-
-
Save artemgordinskiy/0abb50b925753d97fd8c to your computer and use it in GitHub Desktop.
Install Z-Ray for PHP-FPM
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
#!/usr/bin/env bash | |
ZRAY_URL="http://repos.zend.com/zend-server/early-access/zray-tech-preview/zray-php-102775-php5.6.15-linux-debian7-amd64.tar.gz" | |
ZRAY_ARCHIVE_NAME="zray.tar.gz" | |
ZRAY_PACKAGE_NAME="zray-php-102775-php5.6.15-linux-debian7-amd64" | |
# download zray | |
curl -o /tmp/${ZRAY_ARCHIVE_NAME} ${ZRAY_URL} | |
# extract zray archive | |
tar xvfz /tmp/${ZRAY_ARCHIVE_NAME} -C /tmp | |
# move zray directory to /opt | |
mv /tmp/${ZRAY_PACKAGE_NAME}/zray /opt | |
# add a symlink to the zray PHP extension | |
ln -sf /opt/zray/lib/zray.so /usr/lib/php5/20131226/zray.so | |
# symlink zray config files | |
ln -sf /opt/zray/zray.ini /etc/php5/fpm/conf.d/zray.ini | |
ln -sf /opt/zray/zray.ini /etc/php5/cli/conf.d/zray.ini | |
# activate Z-Ray to generate the config file: /opt/zray/runtime/etc/zdd.ini | |
php5-fpm -v | |
# deploy Z-Ray plugins | |
/opt/zray/bin/zdd -e /opt/zray/runtime/etc/zdd.ini --cli |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the package is not found