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.

Customizing PHP Directives Questions

Discussion in 'EasyApache' started by speckados, Nov 13, 2016.

Tags:
  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    305
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Once again I crash frontally with the documentaciond and WHM / Cpanel.

    In your page "How to Customize PHP Directives" with text at bottom, you will find the thing clear. During years use with different EA3 methods according to the server outside DSO, FCGI, SuPHP and all worked.

    Now with the new EA4 (and certainly very green in terms of documentation and possibilities) I find it impossible.

    Well, according to the doc, I put an .user.ini with the directives
    PHP:
    Allow_url_fopen On
    Allow_url_include 
    On
    Even restart the Apache server.

    And nothing, when I try to see the contents of a phpinfo () for directory with .user.ini file, I found the global values Off/Off

    Try with PHP-FPM activate for site, deactivate.

    Whta it's wrong?

     
    #1 speckados, Nov 13, 2016
    Last edited by a moderator: Nov 13, 2016
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    305
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Acequias :: Granada :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    User is with PHP 5.6, PHP-FPM

    • IF directive allow_url_open Off in php.ini global for php 5.6 through shell or through editor multiphp ini (/opt/cpanel/ea-php56/root/etc/php.d/local.ini) .user.ini not work (on path there're a info.php for debug). We need put ON for every server.
    • On same .user.ini for testing porpouses, the're are serialize_precision = 200. This work perfectly.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The values within the php-fpm configuration override the ones in global php.ini. You'd have to follow the workaround instructions on the following thread to make changes to the php.ini when using PHP-FPM:

    Enabling PHP-FPM in MultiPHP Manager

    Thank you.
     
Loading...

Share This Page