• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Resolved How to install ioncube for PHP of "Os vendor"?

hardbrasil

Regular Pleskian
i had installed for php 5.6 and 7, but when i run php -v i got this:


Code:
php -v
Failed loading /opt/plesk/php/5.6/lib64/php/ioncube_loader_lin_5.6.so:  /o
pt/plesk/php/5.6/lib64/php/ioncube_loader_lin_5.6.so: cannot open shared o
bject file: No such file or directory
PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ionc
ube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.


those version (5.6 and 7) the path are little different from the vendor version (5.4)

/opt/plesk/php -> i have only versions (5.6 and 7)

so i need to insert the -> ioncube_loader_lin_5.4.so on php.ini
but i dont't know the right path

thanks
 
i found the path, /usr/lib64/php/modules/ioncube_loader_lin_5.4.so
i add it on /etc/php.ini
but now i got another warning:


Code:
[root@admin ~]# php -v
PHP Warning:  Module 'ionCube Loader' already loaded in Unknown on line 0
The ionCube PHP Loader is disabled because of startup problems.
PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ionc
ube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd
 
when i run php -v under user, i got php of Os vendor and not the php definied to subscription
into plesk i set php 7.
see:

Code:
-bash-4.2$ php -v
PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
    with the ionCube PHP Loader (enabled) + Intrusion Protection from ionc
ube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.
-bash-4.2$
 
Hi hardbrasil,

pls. remember, that EACH PHP version has it's very own path:

php -v <= OS Vendor

/usr/bin/php <=> php -v

Code:
/opt/plesk/php/5.2/bin/php -v
/opt/plesk/php/5.3/bin/php -v
/opt/plesk/php/5.4/bin/php -v
/opt/plesk/php/5.5/bin/php -v
/opt/plesk/php/5.6/bin/php -v
/opt/plesk/php/7.0/bin/php -v

Pls. don't make the mistake to mix your OS vendor version with the Plesk versions and don't try to use modules from a Plesk version for your OS vendor version. ;)


As you can see, you ALREADY loaded the "ioncube loader" for you OS vendor version, otherwise you would get such an output:

PHP 5.4.16 (cli) (built: Aug 11 2016 21:24:59)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.18, Copyright (c) 2002-2015, by ionCube Ltd.
 
Hi hardbrasil,

even that I will answer your question "How to downgrade the installed PHP version to the vendor PHP version" on CentOS 7 - based systems, pls. note that this questions should normally be asked in a NEW thread. ;)

YUM has several options, one is for example the "replace" - option:
  1. Make sure to remove additional repositories ( use "cd /etc/yum.repos.d" and list the repos with "ls -l" - delete repos, which are not necessary! )
  2. Use the command: yum clean && yum update
  3. Install the needed plugin to "REPLACE" packages with yum: yum install yum-plugin-replace
  4. REPLACE the current installed PHP - version with the command: yum replace php-common --replace-with=php54w-common
  5. Install possible additional PHP - packages with the command(s) ( examples!!! ): yum install php54w php54w-cli php54w-mysql
 
Back
Top