Skip to content

Change PHP settings

Pick a PHP version from 8.1 to 8.4, set memory, run time, and upload limits, and let Avaloi roll back a version that breaks your homepage.

PHP settings live on the Tools tab. From there you pick the PHP version an environment runs and set its memory, run time, and upload limits. Open the site, then Tools, then PHP settings.

Open it

  1. Open a site and pick the environment in the top bar.
  2. Choose Tools, then PHP settings.

Change the PHP version

  1. Pick a version from 8.1 to 8.4.
  2. Save. The change runs as a job, and Avaloi takes a system snapshot first.

After a version change, Avaloi checks your homepage. If the homepage answers with a server error, Avaloi switches back to the old version on its own and tells you why. A plugin or theme that does not support the new version is the usual cause. Fix or replace it on staging, then try again.

Change memory, run time, and upload limits

Set the memory limit, the run time, and the upload limits in the same panel, then save. Each change runs as a job.

Change the PHP version and the other PHP settings one at a time, so each change can roll back or fail on its own. If you change both together and something breaks, you cannot tell which change caused it.

Change many sites at once

To change the PHP version or settings on several sites, tick them in the Sites list and pick the action. Avaloi runs one job group and shows a result per site.

End of life versions

Versions that reach end of life stop getting security fixes. Turn on automatic upgrades to move before that date, or plan a move on staging first.

Limits

  • PHP versions: 8.1 to 8.4.

Quick answers

Avaloi switched my site back to the old version. The homepage returned a server error on the new version. Read the reason Avaloi shows, test the site on staging with the new version, and fix the plugin or theme that fails.

Why does Avaloi ask me to change settings one at a time? Each change is one job that can roll back on its own. One change at a time keeps the cause clear.

Can I undo a PHP change? Avaloi takes a system snapshot before every PHP change and keeps it 48 hours. Restore it from the Backups tab if you need to.

API

  • PATCH /v1/environments/{id}
  • PUT /v1/environments/{id}/tools/php-settings
  • POST /v1/bulk

PATCH /v1/environments/{id} changes the PHP version and rolls back automatically when the homepage returns a 5xx.

Still stuck?

Email [email protected] with your site name and what you tried, or send us a message.