xml

Well-Known Member
Jan 15, 2004
106
4
168
After upgrade from EasyApache3 to EasyApache4

1. I have 2 php.ini files:
/usr/local/lib/php.ini
/opt/cpanel/ea-php56/root/etc/php.ini

Which of the 2 php.ini files I should do my editings to enable or disable extensions?

2. after I install APCu what value should I use for extension_dir?
my current is:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20131226"
and its not working
 

Jcats

Well-Known Member
PartnerNOC
May 25, 2011
807
160
168
New Jersey
cPanel Access Level
DataCenter Provider
1. I have 2 php.ini files:
/usr/local/lib/php.ini
/opt/cpanel/ea-php56/root/etc/php.ini

Which of the 2 php.ini files I should do my editings to enable or disable extensions?
You would use /opt/cpanel/ea-php56/root/etc/php.ini

but you shouldn't modify this directly as changes will be lost, you would want to make the changes in Home >> Software >> MultiPHP INI Editor

You may want to read over PHP Home - EasyApache 4 - cPanel Documentation as well
2. after I install APCu what value should I use for extension_dir?
my current is:
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20131226"
and its not working
APCu is not supported in anything higher than PHP 5.4 as far as I'm aware.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
98
78
India
cPanel Access Level
Root Administrator
Twitter
Hi,

after I install APCu what value should I use for extension_dir?
Try the below command that will install the mentioned package for your for respective PHP version and also enable it..
/opt/cpanel/ea-php55/root/usr/bin/pecl install apcu
/opt/cpanel/ea-php56/root/usr/bin/pecl install apcu
/opt/cpanel/ea-php70/root/usr/bin/pecl install apcu
/opt/cpanel/ea-php71/root/usr/bin/pecl install apcu
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,273
1,282
313
Houston
Hi @xml

Please let us know if the answers provided here were of assistance to you. Thank you, @Jcats and @24x7server for your great answers!
 
Last edited:

xml

Well-Known Member
Jan 15, 2004
106
4
168
after many trials I found out apcu_bc works for easyapache 4 not apcu

my question now where to find runtime settings for apcu_bc to make changes?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,273
1,282
313
Houston
Hello,

APCu should work though apcu_bc is the backwards compatibility module - from their page here: krakjoe/apcu-bc:

There is no appreciable difference; This layer calls the same internal (to apc) functions that APCu does, but just accepts the old parameters, the only meaningful difference is prototypes and names of functions.
Configuring APCu should be the same the runtime configuration information can be found here: PHP: Runtime Configuration - Manual
 

xml

Well-Known Member
Jan 15, 2004
106
4
168
runtime settings for apcu_bc in phpinfo.php doesnt reflect values in php.ini file. is there a differnet location rather than php.ini to modify those runtime settings?

I tried in
/usr/local/lib/php.ini
/opt/cpanel/ea-php70/root/etc/php.ini
but no luck
 

xml

Well-Known Member
Jan 15, 2004
106
4
168
Ok I forget to do service httpd restart thats why

Thank you all for your replies apcu_bc is working now
 

xml

Well-Known Member
Jan 15, 2004
106
4
168
I have APCu Version 5.1.12 installed in my server. How to upgrade to APCu Version 5.1.16?