EasyApache 4 +php7+opcache
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?
-
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: [QUOTE] - 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.
0 -
Very clear thank you 0 -
You're welcome, happy we could help! Thank you! 0
Please sign in to leave a comment.
Comments
3 comments