Skip to main content

php-fpm config

Comments

9 comments

  • cPanelMichael
    Hello, This is discussed on the following thread: MultiPHP INI Editor Values Not Saved for PHP-FPM Sites Thank you.
    0
  • OooLong
    Michael, I'm still hazy on the document. Is it saying the only way to make change to php-fpm.conf is to edit the .yaml file and then rebuild? is that right?
    0
  • cPanelMichael
    Hello, Yes, that's correct. It's not currently possible to make the change through the MultiPHP INI Editor. Thank you.
    0
  • OooLong
    Also why say to use WHM user Interface to edit php-fpm config if the only way to edit is to edit the .yaml file and rebuild? ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; cPanel FPM Configuration ; ;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; NOTICE This file is generated, please use our WHM User Interface ; to set these value.
    0
  • OooLong
    For the yaml file, which do I use? key or name for all config? For ex: pm_min_spare_servers or pm.min_spare_servers
    0
  • OooLong
    I just add this in /var/cpanel/userdata/site1/site1.com.php-fpm.yaml pm_start_servers = 3 pm_min_spare_servers = 2 pm_max_spare_servers = 5 request_terminate_timeout = 120s then rebuild /scripts/php_fpm_config --rebuild --domain=site1.com the config file didn't add my change in: /opt/cpanel/ea-php71/root/etc/php-fpm.d/site1.com.conf what did I do wrong?
    0
  • OooLong
    I re-edit with: pm_start_servers: 3 pm_min_spare_servers: 1 pm_max_spare_servers: 5 request_terminate_timeout: 120s I think that was the probable way, still doesn't update the conf file. Need help on yaml editing.
    0
  • OooLong
    Nvm I solved this. Have to remove all the line and retype it. Also remove this two line: --- _is_present: 1
    0
  • cPanelMichael
    Nvm I solved this. Have to remove all the line and retype it. Also remove this two line: --- _is_present: 1

    I'm glad to see you were able to solve the issue. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.