WP Engine’s PHP Selector allows you to easily find and change the PHP version of each environment. Changing PHP version is per environment, meaning you may change the version of staging or development without impacting the production site. The version change itself is quick and immediate, requiring no technical knowledge.
How to Change PHP Versions
- Log in to the User Portal
- Select the environment name you’d like to modify
- Within the Environment Stats section, locate PHP Version
- Click the PHP Version number, in blue
- Select a new PHP version
- Click Change PHP Version
PHP Versions on WP Engine
Changing PHP version is instant and should be reflected on the site immediately after refreshing your browser. If desired, you can confirm the current PHP version of your site by creating a PHP info file. The change is in-place meaning there is no migration, no downtime and no DNS updates necessary.
The PHP Selector can be used to switch between any available PHP version. If a PHP version is not displaying, it is not available on the server. WP Engine servers can run several secure versions of PHP at a time. Older PHP versions are removed as they’re determined to be insecure, and new PHP versions are thoroughly tested by our engineers before becoming available.
Each environment within a site can have a different PHP version and that version is not copied when deploying between environments. When using other environments to test, you will want to confirm the PHP version is the same.
NOTE: Legacy staging cannot have the PHP version changed independently from live.