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!

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:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: 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?

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #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:
    43,672
    Likes Received:
    1,788
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: 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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,672
    Likes Received:
    1,788
    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.
     
    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