Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED EasyApache 4 +php7+opcache

Discussion in 'EasyApache' started by xml, Apr 26, 2018.

  1. xml

    xml Well-Known Member

    Joined:
    Jan 15, 2004
    Messages:
    85
    Likes Received:
    1
    Trophy Points:
    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?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    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:

     
  3. xml

    xml Well-Known Member

    Joined:
    Jan 15, 2004
    Messages:
    85
    Likes Received:
    1
    Trophy Points:
    158
    Very clear thank you
     
  4. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    968
    Likes Received:
    68
    Trophy Points:
    103
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    You're welcome, happy we could help! Thank you!
     
Loading...

Share This Page