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!

Define default values for /opt/cpanel/ea-php70/root/etc/php-fpm.d/*.conf

Discussion in 'EasyApache' started by EneTar, Jul 21, 2017.

Tags:
  1. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    135
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    All *.conf files inside /opt/cpanel/ea-php70/root/etc/php-fpm.d/ have these values among others
    Code:
    php_admin_flag[allow_url_fopen] = on
    php_admin_value[short_open_tag] = on
    1)I went to /var/cpanel/userdata/[account]/domain.php-fpm.yaml and I see only this
    Code:
    ---
    _is_present: 1
    pm_max_children: 5
    pm_max_requests: 100
    pm_process_idle_timeout: 50
    2)How can I set
    Code:
    php_admin_flag[allow_url_fopen] = off
    php_admin_value[short_open_tag] = off
    3)How can I set the default
    Code:
    php_admin_flag[allow_url_fopen]
    php_admin_value[short_open_tag]
    and other values for new domains ?

    4)Why is the default allow_url_fopen = on as documented in Configurations Values of PHP-FPM - Documentation - cPanel Documentation is this needed by cPanel for any reason?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,700
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @EneTar,

    The following thread is helpful if you'd like to modify the default PHP-FPM configuration values used for new accounts, or for a single domain name:

    PHP-FPM - Default Settings

    Could you review this thread and let us know if it helps?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    EneTar likes this.
  3. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    135
    Likes Received:
    9
    Trophy Points:
    18
    Location:
    Greece
    cPanel Access Level:
    Root Administrator
    Thank you Michael yes it helped a lot. Any particular reason why cPanel has set the default
    php_admin_flag[allow_url_fopen] to On? It could be a security risk.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,700
    Likes Received:
    1,791
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hi @EneTar,

    I opened internal case EA-6605 to determine if allow_url_fopen should be enabled by default for with PHP-FPM. I'll update this thread with more information as it becomes available.

    Thanks!
     
    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