• 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!
  • 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.

Install APC Cache on Plesk 12 with multiple PHP version

Floezen

Basic Pleskian
Hi,

I am trying to install APC for PHP 5.6 on a CentOS 7 machine with Plesk 12.

My first try was:
Code:
/opt/plesk/php/5.6/bin/pecl install apc

But I got a warning:

Code:
WARNING: php_bin /opt/plesk/php/5.6/bin appears to have a suffix /5.6/bin, but config variable php_suffix does not match

Than I found this thread: http://talk.plesk.com/threads/multiple-php-versions-in-plesk-12-0-out-of-the-box.332638/page-2

and tried a
Code:
pecl config-set php_ini /opt/plesk/php/5.6/etc/php.ini
pecl config-set php_bin /opt/plesk/php/5.6/bin
But this still didn't fix it, so I also added the suffix:

Code:
pear config-set php_suffix 5

But this seams to be nonsense, because now it is trying to run phpize5 which doesn't exist. And the warning is still there:

Code:
WARNING: php_bin /opt/plesk/php/5.6/bin appears to have a suffix /5.6/bin, but config variable php_suffix does not match
running: phpize5


Any idea what I need to do?

Thanx
Flözen

btw: PHP 5.6 devel is installed
 
I don't think there would be any point in installing APC on PHP 5.6 as it already includes the Zend OPcache.
 
@Floezen,

You ask:
Any idea what I need to do?

The answer is:

a) use a (very) old version of PHP and install APC, a solution that is totally not adviceable (this results in various, serious problems: APC has many disadvantages), OR

b) completely uninstall APC, given the fact that OPCache is already set to be active by default.

In short, go for option B.

Kind regards....
 
Back
Top