$ ssh support@server100
support@server100 [~]# wget http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
–05:53:57– http://downloads2.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
=> `ioncube_loaders_lin_x86-64.tar.gz’
Resolving downloads2.ioncube.com… 64.85.170.46
Connecting to downloads2.ioncube.com|64.85.170.46|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 3,232,419 (3.1M) [application/x-gzip]
100%[====================================================================================================================================================================================>] 3,232,419 957.18K/s ETA 00:00
05:54:01 (916.64 KB/s) – `ioncube_loaders_lin_x86-64.tar.gz’ saved [3232419/3232419]
support@server100 [~]# grep ioncube /usr/local/lib/php.ini
zend_extension=”/usr/local/IonCube/ioncube_loader_lin_5.2.so”
support@server100 [~]# tar -tzf ioncube_loaders_lin_x86-64.tar.gz ioncube_loader_lin_5.2.so
ioncube/ioncube_loader_lin_5.2.so
support@server100 [~]# mv ioncube/ioncube_loader_lin_5.2.so /tmp
support@server100 [~]# switch SOMEUSER
[email protected] [~]# cp /tmp/ioncube_loader_lin_5.2.so .
[email protected] [~]# pwd
/home/SOMEUSER
– Check if php.ini exists:
[email protected] [~/public_html]# ls -la public_html/php.ini
/bin/ls: public_html/php.ini: No such file or directory
– If does not exist, copy php.ini from system location:
[email protected] [~/public_html]# cp /usr/local/lib/php.ini public_html/
– If php.ini exists, make a backup copy before editing the original:
[email protected] [~/public_html]# cp -p public_html/php.ini public_html/php.ini.bak
[email protected] [~/public_html]# pico public_html/php.ini
– Change zend_extension=”/usr/local/IonCube/ioncube_loader_lin_5.2.so” to zend_extension=”/home/SOMEUSER/ioncube_loader_lin_5.2.so”
– Save and exit.
On SuPHP servers, should make php.ini recursive using SuPHP_ConfigPath in .htaccess file:
[email protected] [~]# cp -p public_html/.htaccess public_html/.htaccess.bak
[email protected] [~]# pico public_html/.htaccess
– Add to .hatccess file: SuPHP_ConfigPath /home/SOMEUSER/public_html
– Save and exit.
[email protected] [~]# exit
logout
– Cleanup what you put in /tmp :
support@server100 [~]# rm -f /tmp/ioncube_loader_lin_5.2.so
– Test website. Done.