Change your PHP version and PHP settings
Switch the PHP version for a FoxFolio Cloud hosting service, raise upload and memory limits, and schedule tasks, without breaking your website.
Quick answer
Open the control panel and select Change PHP Version to choose the version your site needs; the change usually applies within a minute. Use PHP Configuration to adjust settings such as upload_max_filesize and memory_limit, which both start at 128M. Take a backup and check that your themes, plugins or application support the new version first.
Before you start
- An active hosting service (not Basic Email)
- The PHP versions your application, theme and plugins support
- A recent backup (how)
Applies to: Cloud Hosting, WordPress Cloud, Managed WordPress.
Steps
Check compatibility
Look up which PHP versions your application supports. For WordPress, check your theme and each active plugin. Managed WordPress customers should ask in a ticket rather than changing PHP themselves.
Take a backup
Create an on-demand backup so you can go back if something breaks.
Change the version
Open the control panel, select Change PHP Version, pick the version and save. It normally applies straight away and within about 60 seconds at most.
Test the site
Load the home page and several inner pages, sign in to the site’s dashboard, and submit a form if you have one. If anything fails, switch back to the previous version.
Adjust PHP settings if needed
Select PHP Configuration to change values such as
upload_max_filesize(for large uploads) ormemory_limit(for memory errors). Raise them in modest steps rather than to the maximum.Schedule tasks
If your application needs a regular job, select Scheduled Tasks, enter the command, choose how often it runs and, optionally, an email address for its output.
What you should see
The site loads normally on the chosen PHP version, and uploads or memory-heavy tasks that previously failed now complete.
Troubleshooting and common mistakes
- The site shows a critical error or blank page after the change.
- Switch back to the previous PHP version, then look for the incompatible theme, plugin or code before trying again. See Fix common WordPress errors.
- Uploads still fail with a size error.
- Raise
upload_max_filesizeand, if your application uses it,post_max_sizein PHP Configuration, then try again after a minute. - A scheduled task does not run.
- Check the command path and that the script runs when started by hand. Enable the output email to see errors.
When to contact FoxFolio support
Open a ticket if you need a PHP setting that PHP Configuration does not offer, or if a version change breaks the site and switching back does not fix it.
Sources
Adapted from the platform vendor’s PHP and scheduled-task articles. FoxFolio Cloud does not list supported versions here because the choice shown in your control panel is the authoritative list.
- Change PHP version (opens in a new tab) — 20i documentation
- PHP max upload file size (opens in a new tab) — 20i documentation
- PHP memory_limit (opens in a new tab) — 20i documentation
- Set up a cron job (opens in a new tab) — 20i documentation
