Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Z-Ray for PHP-FPM
#!/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
@albandaft

This comment has been minimized.

Copy link

@albandaft albandaft commented Jun 22, 2017

the package is not found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment