SOLVED EasyApache 4 +php7+opcache

xml

Well-Known Member
Jan 15, 2004
89
3
158
I am trying to make some changes on opcache configurations

for example I want to chanage (opcache.max_accelerated_files =4000) to 10000

I add this change to:

1. /opt/cpanel/ea-php70/root/etc/php.ini
service httpd restart
value didnt change

2. /usr/local/lib/php.ini
service httpd restart
value didn't change

I got what I want when changes done in /opt/cpanel/ea-php70/root/etc/php.d/10-opcache.ini

my question is when I do changes to php.ini its should be global and override 10-opcache.ini, am I right?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,254
313
Houston
Hello,


No, it may have overidden this previously but with EA4 all changes to PHP configurations like this need to be done in their own .ini files in /opt/cpanel/ea-phpXX/root/etc/php.d/

This is explained in the documentation here: Advanced PHP Configuration - EasyApache 4 - cPanel Documentation

Specifically the order noted here:

  • If a php-sapi.ini file exists, where sapi represents the SAPI in use, the system reads that file instead of the php.ini file.