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.

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:
    66
    Likes Received:
    2
    Trophy Points:
    8
    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:
    37,163
    Likes Received:
    1,294
    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.
     
    EneTar likes this.
  3. EneTar

    EneTar Well-Known Member

    Joined:
    Dec 19, 2015
    Messages:
    66
    Likes Received:
    2
    Trophy Points:
    8
    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:
    37,163
    Likes Received:
    1,294
    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!
     
Loading...

Share This Page