Define default values for /opt/cpanel/ea-php70/root/etc/php-fpm.d/*.conf
All *.conf files inside /opt/cpanel/ea-php70/root/etc/php-fpm.d/ have these values among others
1)I went to /var/cpanel/userdata/[account]/domain.php-fpm.yaml and I see only this
2)How can I set
3)How can I set the default
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?
php_admin_flag[allow_url_fopen] = on
php_admin_value[short_open_tag] = on1)I went to /var/cpanel/userdata/[account]/domain.php-fpm.yaml and I see only this
---
_is_present: 1
pm_max_children: 5
pm_max_requests: 100
pm_process_idle_timeout: 502)How can I set
php_admin_flag[allow_url_fopen] = off
php_admin_value[short_open_tag] = off3)How can I set the default
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?
-
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. 0 -
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. 0 -
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.
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!0
Please sign in to leave a comment.
Comments
3 comments