Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install Z-Ray for PHP-FPM
#!/usr/bin/env bash
# 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/ /usr/lib/php5/20131226/
# 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

This comment has been minimized.

Copy link

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
You can’t perform that action at this time.