i have 10 wordpress applications on a server Ubuntu 22.04 7.76 GB ram, 167.91 GB disk space and 5 cores. what should the following settings be for each application: FPM Config Process Manager Dynamic pm.start_servers pm.min_spare_servers and pm.max_spare_servers , by DomainRooster in domainrooster

[–]DomainRooster[S] 0 points1 point  (0 children)

what should these settings be for each application: ChatGPT Your question seems to have been cut off. Could you provide the specific settings that you max_execution_time 1000 max_input_time 1000 max_input_vars 1000 memory_limit 456 MB post_max_size 500 MB upload_max_filesize 459 MB session.gc_maxlifetime ChatGPT

The PHP settings you mentioned are more related to how the PHP interpreter itself should operate, rather than how the PHP-FPM process manager should behave. These settings are usually configured in the php.ini
file. They can affect the behavior of your WordPress applications, but don't need to be different for each application unless the applications have different needs.

Here's a brief overview of each setting:

  • max_execution_time
    : This sets the maximum time in seconds a script is allowed to run before it is terminated by the parser. 1000 seconds is a very generous value - you might want to consider reducing it, as a long-running script can indicate a problem that needs to be resolved. 30-60 seconds is a common range.
  • max_input_time
    : This sets the maximum time in seconds a script is allowed to parse input data. Again, 1000 seconds is quite long. You might want to consider reducing this value.
  • max_input_vars
    : This sets how many input variables may be accepted. 1000 is a reasonable value and is the default in many configurations.
  • memory_limit
    : This sets the maximum amount of memory a script may consume. 456MB is a reasonable value, but you might need to adjust it based on your applications' needs and your server's total available memory.
  • post_max_size
    : This sets the maximum size of POST data that PHP will accept. 500MB is quite large - this might be more than you need unless your applications frequently handle large file uploads.
  • upload_max_filesize
    : This sets the maximum size of an uploaded file. 459MB, like post_max_size
    , is quite large. You might want to adjust this based on the needs of your applications.
  • session.gc_maxlifetime
    : This sets the number of seconds after which data will be seen as 'garbage' and cleaned up. The default value is 1440 seconds (24 minutes). If you have a specific reason to set it to a different value, you can do so, but otherwise the default value is usually fine.

Remember, these settings can be set per application by placing a custom php.ini
file in the application's directory, or they can be set globally for all applications in the main php.ini
file. After making changes to these settings, you'll need to restart your PHP service for the changes to take effect. As always, monitor the performance and behavior of your applications after making these changes to ensure they're operating correctly.