Configure site PHP limits
This guide reviews a site’s PHP limits, prepares a bounded change and explains how to verify the result. The screens use fictional settings and errors. We will not submit the form, upload files, activate a runtime or reload any server service.
Demonstration: Herne 3.55.43, English interface and narration, fictional Northstar Studio settings. Captures use actual product views with synthetic stored values, unsaved input and errors. No form submission, host configuration, service activation, reload or upload runs. Written guidance and selectable subtitles are available in six languages.
English audio · 6 min 6 sec · Subtitles in all six site languages.
1. Check access and open PHP limits
This guide reviews a site’s PHP limits, prepares a bounded change and explains how to verify the result. The screens use fictional settings and errors. We will not submit the form, upload files, activate a runtime or reload any server service.
PHP limit changes require authorized site access and an administrator or operator role. An ordinary owner can see an unavailable notice. The notice mentions administrators, but the current permission check also accepts operators for sites they may edit. Do not treat that role as permission to edit another owner’s site.
Open the intended site, then choose PHP limits from Settings. Check the domain below the heading. This workspace controls site runtime settings. PHP version, document root and serving status are separate choices; keep them stable while reviewing a limit change.
2. Read defaults and accepted values
An empty field removes that site override when saved. Placeholder numbers are examples, not current values. The Effective value line reflects saved configuration and fallback logic; it is not a live process measurement. Server default does not establish a numeric limit or prove what an already running request is using.
Size fields accept positive whole numbers followed by M or G, such as 64M or 1G. Bare numbers, MB, zero and minus one are not supported here. The two time fields accept whole seconds from thirty to nine hundred, or an empty value. Lowercase size suffixes are normalized on save.
Nginx Client Body Size limits the request body before the application handles it. An oversized body can produce a 413 response. Review this gate alongside PHP’s upload settings; increasing a PHP field alone cannot remove a smaller Nginx limit.
Size syntax uses one to five digits before M or G; the first digit cannot be zero.
Directive references: Nginx client_max_body_size.
3. Prepare upload and execution settings
upload_max_filesize limits an individual uploaded file. post_max_size covers the whole POST body, including files and form overhead. Leave room above the intended file size. The application may impose a smaller limit of its own; these fields do not change application validation.
The fictional proposal uses 128M for one file and 160M for both POST and Nginx body size. It illustrates headroom, not a recommendation for every site. Choose values from the actual workload and available capacity. Typing changes the form; the displayed saved Effective value may still show the previous setting.
max_execution_time sets the site’s PHP execution-time override. Choose a bounded duration for a known task. Do not read it as an exact end-to-end deadline or proof an import will finish. Network, application, proxy and worker paths may have independent limits. Background jobs use their own configuration.
| Field | Stored example | Unsaved proposal |
|---|---|---|
| Nginx Client Body Size | 80M | 160M |
| upload_max_filesize | 64M | 128M |
| post_max_size | 80M | 160M |
| max_execution_time | 120 | 120 |
| Nginx fastcgi_read_timeout | 180 | 180 |
| memory_limit | 512M | 512M |
Directive references: PHP upload_max_filesize / post_max_size.
4. Review timeout and memory boundaries
When Nginx fastcgi_read_timeout is empty, Herne uses the saved max_execution_time value if present. In this example, the blank field therefore displays 120 seconds. If both are empty, these explicit timeout overrides are omitted. An explicit Nginx value should not be shorter than the planned PHP duration; review the relationship yourself.
Nginx read timeout concerns gaps between reads, not the entire response duration. Herne also passes the chosen timeout to the site’s FPM request-termination setting. Those mechanisms have different meanings. Increasing one number does not prove that a long-running operation is healthy.
memory_limit is a PHP setting, not a reservation of host RAM or the site’s aggregate memory budget. Herne’s site FPM preparation also checks the web budget and derives worker capacity. Raising this field can reduce that capacity or make preparation fail. With a finite web budget, an empty override can derive 128M despite the generic Server default label.
Directive references: Nginx fastcgi_read_timeout.
5. Review the change before saving
Before saving, record all previous overrides, the reason for change and one representative test. Check host capacity with the responsible administrator and choose a suitable maintenance window. Keep this proposal separate from a PHP-version or resource-policy change. The example values are unsaved and do not establish active server configuration.
Save PHP limits is an operational action, not merely a draft save. When runtime values change, Herne persists them and applies the managed site configuration with validation and controlled service activation. The current path uses dedicated site FPM, rather than restarting the panel’s shared PHP service. We leave the button untouched.
The synthetic validation example enters 64MB and nine hundred one seconds. Both violate the panel’s accepted formats or range. Review every error and correct the intended fields; do not assume any runtime change succeeded. The form can preserve attempted input, so visible text alone is not evidence that values were saved.
6. Handle failure, verify and restore
If configuration application fails, the settings flow restores the previous stored values and reports failure. The runtime also attempts configuration recovery. Do not infer that every host state is healthy from that message, especially if recovery itself failed. Preserve the error, check service and site health with the administrator, and avoid repeated blind saves.
After an authorized successful change, reopen the page to read saved values, then run the agreed application test through the actual web path. Compare result and relevant logs. The success message is not proof an upload or import completed. Keep diagnostic output private; do not publish a PHP information page containing server details.
To reverse an approved change, review and reapply the recorded previous overrides through the same controlled flow, then verify the site again. Clearing every field is different: it removes overrides and invokes fallback behavior. Record the final values, test outcome and remaining uncertainty. These controls do not replace diagnosis or an application recovery plan.