Last active
January 16, 2023 15:00
-
-
Save gvoze32/c3f5eed8c7ab31455b4bdf1e9bb82bdd to your computer and use it in GitHub Desktop.
Revisions
-
gvoze32 revised this gist
Jan 16, 2023 . No changes.There are no files selected for viewing
-
gvoze32 created this gist
Oct 11, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ #!/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