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!

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:
    2,748
    Likes Received:
    187
    Trophy Points:
    143
    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:

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  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:
    2,748
    Likes Received:
    187
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    You're welcome, happy we could help! Thank you!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice