PHP Configuration

Requires a server to be provisioned.

Resources used

Basic Configuration

image

  1. Navigate to the PHP page for the server
    1. Ensure OPCache is enabled
    2. Set Max File Upload Size to 50M. Click "Update".
    3. Set the Max Execution Time to 30. Click "Update".

PHP FPM Configuration

imageimage

  1. Load up the PHP FPM config from the PHP versions hamburger menu
    1. Set max_input_vars to 10000
    2. Set memory_limit to 512M
  2. Click "Save"

PHP Pool Configuration

image image

  1. Load up the PHP pool configuration from the PHP versions hamburger menu.
  2. Locate the process manager section (pm) and replace the defaults with the following:
    pm = dynamic
    pm.max_children = 40
    pm.start_servers = 10
    pm.min_spare_servers = 10
    pm.max_spare_servers = 20
    
    • These are safe defaults which work fairly well for our baseline 4vCPU server setup.
  3. Click "Save"