• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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