Incorrect behavior of the .yaml file editing process for FPM
Hi.
I use personalized configurations for some user and like limit max memory tags.
Best way it's edit file
and after run
This wor for too many flags of php, but woth memory_limit not work. Example--> Edit /var/cpanel/userdata/[user]/[domain].php-fpm.yaml
After run rebuild fpm config
PHP-FPM Code and FileSystem Layout for EasyApache 4 - Documentation - cPanel Documentation What is wrong?
/var/cpanel/userdata/[user]/[domain].php-fpm.yaml and after run
/scripts/php_fpm_config --rebuildThis wor for too many flags of php, but woth memory_limit not work. Example--> Edit /var/cpanel/userdata/[user]/[domain].php-fpm.yaml
---
_is_present: 1
php_admin_value_memory_limit: 1G
php_admin_value_short_open_tag : off
After run rebuild fpm config
php_admin_value_memory_limit = 1G // Incorrect line for fpm config and crash server
php_admin_value[short_open_tag] = offPHP-FPM Code and FileSystem Layout for EasyApache 4 - Documentation - cPanel Documentation What is wrong?
-
Hello, Can you try using 1024M instead of 1G to see if that works? Thank you. 0 -
Hi. Same prblem. But logic of programing its a bad method for convert php_admin_value_memory_limit onto php_admin_value[memory_limit]. Best regards, ? ea-php56-php-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/usr/lib/systemd/system/ea-php56-php-fpm.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Wed 2017-09-06 20:05:46 CEST; 5s ago Process: 27220 ExecStart=/opt/cpanel/ea-php56/root/usr/sbin/php-fpm --nodaemonize (code=exited, status=78) Main PID: 27220 (code=exited, status=78) Sep 06 20:05:46 srv105.tamainut.net systemd[1]: Starting The PHP FastCGI Process Manager... Sep 06 20:05:46 srv105.tamainut.net php-fpm[27220]: [06-Sep-2017 20:05:46] ERROR: [/opt/cpanel/ea-php56/root/etc/php-fpm.d/lavermuteria.com.conf:21] unknown entry 'php_admin_value_memory_limit' Sep 06 20:05:46 srv105.tamainut.net php-fpm[27220]: [06-Sep-2017 20:05:46] ERROR: Unable to include /opt/cpanel/ea-php56/root/etc/php-fpm.d/lavermuteria.com.conf from /opt/cpanel/ea-php56/root/etc/php-fpm.conf at line 21 Sep 06 20:05:46 srv105.tamainut.net php-fpm[27220]: [06-Sep-2017 20:05:46] ERROR: failed to load configuration file '/opt/cpanel/ea-php56/root/etc/php-fpm.conf' Sep 06 20:05:46 srv105.tamainut.net php-fpm[27220]: [06-Sep-2017 20:05:46] ERROR: FPM initialization failed Sep 06 20:05:46 srv105.tamainut.net systemd[1]: ea-php56-php-fpm.service: main process exited, code=exited, status=78/n/a Sep 06 20:05:46 srv105.tamainut.net systemd[1]: Failed to start The PHP FastCGI Process Manager. Sep 06 20:05:46 srv105.tamainut.net systemd[1]: Unit ea-php56-php-fpm.service entered failed state. Sep 06 20:05:46 srv105.tamainut.net systemd[1]: ea-php56-php-fpm.service failed.0 -
--- _is_present: 1 php_admin_value_memory_limit: 1G php_admin_value_short_open_tag : off
Hello, This should be updated to match the examples we provide at: Configurations Values of PHP-FPM - Documentation - cPanel Documentation EX:--- _is_present: 1 php_admin_value_memory_limit: { name: 'php_admin_value[memory_limit]', value:1024M }
Can you verify if any issues persist when updating the entries to match this format? Thank you.0
Please sign in to leave a comment.
Comments
3 comments