Page 1 of 1

Where is the usr/bin directory?

Posted: Thu Jul 09, 2015 12:57 am
by clever1
Hi
I'm trying to install ioncube and in order to put the ini file I must put it in the usr/bin area. In my ftp it only shows my website directory and not the core or root part.
Could someone point me to a solution on how to find this directory and how to add the ioncube ini file?

Re: Where is the usr/bin directory?

Posted: Fri Jul 10, 2015 10:22 am
by mehargags
Here is my approach for php 5.6... please adjust your files with your version number

iconcube loader for PHP 5.6
============

Code: Select all

php -i | grep extension_dir
/usr/lib/php5/<extension dir>

Code: Select all

nano /etc/php5/apache2/php.ini

Code: Select all

#	under section-> Dynamic Extensions

zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6.so
zend_extension = /usr/lib/php5/20131226/ioncube_loader_lin_5.6_ts.so
copy the above two files from ioncube pkg into the path specified above.

# check loaded extension via PHP file

Code: Select all

<?php
echo var_export(extension_loaded('ionCube Loader') ,true);