Skip to main content

Which php.ini should I use?

Comments

13 comments

  • Jcats
    . 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
    . 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.
    0
  • 24x7server
    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
    0
  • cPanelLauren
    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!
    0
  • xml
    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!

    I need to know if APCu supported in EasyApache 4?
    0
  • cPanelLauren
    Hello, APC is a pecl module and is able to be installed through the module installer interface, this indicates that it is supported. Thank you,
    0
  • xml
    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?
    0
  • cPanelLauren
    Hello, APCu should work though apcu_bc is the backwards compatibility module - from their page here: krakjoe/apcu-bc: [QUOTE]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
    0
  • xml
    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
    0
  • xml
    Ok I forget to do service httpd restart thats why Thank you all for your replies apcu_bc is working now
    0
  • cPanelLauren
    Hi, I'm glad to hear that!
    0
  • xml
    I have APCu Version 5.1.12 installed in my server. How to upgrade to APCu Version 5.1.16?
    0
  • cPanelLauren
    You should be able to get APCu v5.1.16 by going to WHM>>Software>>Module Installers -> PHP Pecl and installing it for the version of PHP you're wanting to run it on.
    0
  • xml
    That worked perfectly. Thank you
    0

Please sign in to leave a comment.