Skip to content

Knowledgebase

Applying permitted PHP settings to one SiteWorx domain

control-panels, domains-dns

Per-domain PHP settings depend on the server’s PHP mode. On supported PHP-FPM configurations, a correctly placed .user.ini can set permitted directives without changing every account.

What you need before you begin

Ask the provider which PHP mode applies and record the current effective values. Back up any existing .user.ini and check the application’s actual requirement rather than raising limits arbitrarily.

01 Apply permitted PHP settings to one SiteWorx domain

  1. For PHP-FPM, open File Manager, choose the domain and enter its actual public html directory.
  2. Open the existing .user.ini or create a file with that exact name. The word user is literal, not a placeholder for the account username.
  3. Add only supported per-directory directives in INI syntax. Coordinate related values, such as an upload limit and the total request-body limit.
  4. Save and allow the runtime’s configuration refresh interval. Verify the effective setting through a protected diagnostic or application status view.
  5. Test the affected action and remove temporary diagnostic output. Retain the previous file for a controlled reversal.

02 Example: a small, coordinated upload configuration

For an application whose approved requirement is a single file up to 16 MiB, these are illustrative entries in the existing .user.ini:

Code or configuration example
upload_max_filesize = 16M
post_max_size = 24M

Use only values permitted by the hosting service. The request allowance must also fit all submitted files and form fields; several 16 MiB files would exceed this example. Preserve unrelated existing directives and allow the PHP configuration refresh interval before checking the application effective values.

Test a small permitted file and the intended representative upload, then confirm the saved file is intact. If PHP reports the old values, investigate the handler, file location and provider restrictions. An upstream HTTP 413 response or application-specific rejection can require a separate fix.

Confirm the expected result

The permitted setting should apply to the intended domain and solve the measured requirement without exceeding the service’s resource limits.

Troubleshoot unexpected results

Some directives are administrator-only or locked by the provider. A SuPHP configuration uses a different supported procedure and may require provider assistance; do not paste old handler-specific .htaccess directives into a PHP-FPM site.

Does increasing memory_limit add server memory?

No. It changes an application limit within the available service capacity. Excessively high values can worsen resource pressure, so base the change on the workload and plan allowance.

Was this answer helpful?

Need a little more help?

Our support team can help you find the next step.

Contact support