Last active
January 16, 2023 15:00
-
-
Save gvoze32/c3f5eed8c7ab31455b4bdf1e9bb82bdd to your computer and use it in GitHub Desktop.
Auto install IonCube PHP Loader/Encoder for Debian x64
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
#!/bin/bash | |
curl -O https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz | |
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz | |
rm ioncube_loaders_lin_x86-64.tar.gz | |
cd ioncube | |
php_ext_dir="$(command php -i | grep extension_dir 2>'/dev/null' \ | |
| command head -n 1 \ | |
| command cut --characters=31-38)" | |
php_version="$(command php --version 2>'/dev/null' \ | |
| command head -n 1 \ | |
| command cut --characters=5-7)" | |
cp ioncube_loader_lin_${php_version}.so /usr/lib/php/${php_ext_dir} | |
cd .. | |
rm -rf ioncube | |
cat > /etc/php/${php_version}/cli/conf.d/00-ioncube-loader.ini << EOF | |
zend_extension=ioncube_loader_lin_${php_version}.so | |
EOF | |
php -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment