Skip to content

Instantly share code, notes, and snippets.

@artemgordinskiy
Created December 9, 2015 14:37
Show Gist options
  • Save artemgordinskiy/0abb50b925753d97fd8c to your computer and use it in GitHub Desktop.
Save artemgordinskiy/0abb50b925753d97fd8c to your computer and use it in GitHub Desktop.
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
Copy link

the package is not found

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