PHP Configuration

App Servers come with PHP installed and configured. The PHP screen on the server view lets you tweak the runtime to fit your application — adjust memory limits, upload sizes, and other php.ini values without ever opening an SSH session.

Common settings

The most common settings can be edited as labelled fields:

  • Memory limitmemory_limit
  • Upload max filesizeupload_max_filesize
  • Post max sizepost_max_size
  • Max execution timemax_execution_time

Save changes and Depfloy applies them to both PHP-FPM (used by your applications) and PHP-CLI (used by artisan, composer, scheduled tasks).

PHP Configuration

Editing php.ini directly

For settings that are not surfaced as fields, the editor at the bottom of the PHP screen lets you append or override raw php.ini directives. Anything you write here is layered on top of the defaults — be deliberate; PHP can break if you set values that conflict with what Depfloy installed.

After saving, Depfloy reloads PHP-FPM so changes take effect on the next request. CLI processes pick up changes on their next invocation.

Restarting PHP-FPM

If a misconfiguration leaves PHP in a bad state, restart PHP-FPM from the More menu in the server header. As with any service restart, expect a brief interruption while the worker pool comes back up.

Was this page helpful?