Skip to content

Instantly share code, notes, and snippets.

@tomcoonen
Forked from corny/install_zend_guard.sh
Last active March 8, 2018 11:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save tomcoonen/10245050 to your computer and use it in GitHub Desktop.
Save tomcoonen/10245050 to your computer and use it in GitHub Desktop.
Installation of Zend Guard 6.0.0 using PHP 5.4 and Ubuntu 12.04 (32 bit).
#!/bin/bash
wget http://downloads.zend.com/guard/6.0.0/ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz
tar xzf ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386.tar.gz
cp ZendGuardLoader-70429-PHP-5.4-linux-glibc23-i386/php-5.4.x/ZendGuardLoader.so /usr/lib/php5/20100525+lfs/
file=/usr/lib/php5/20100525+lfs/ZendGuardLoader.so
echo zend_extension=$file > /etc/php5/conf.d/zend_extensions.ini
chmod 644 $file
chown 0:0 $file
service apache2 reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment