NodeChef PHP hosting allows you to run PHP 5.6.x, 7.0.x, 7.1.x and 7.2.x versions of PHP as of this writing. We automatically install the version of PHP for you once you specify it.
Before migrating your app to a newer version of PHP, it is important to read the possible migration incompatibilities. We have provided links below:
In the root folder of your application create a folder with name .bp-config. Under this folder create a file with name options.json
The below example shows an example PHP app directory after you create the .bp-config/options.json file.
Use the example JSON format below to specify the version. Note, You do not have to specify the exact version just use the format as show below.
The supported values for the PHP_VERSION option includes:
Installs the latest version in the 5.6.x distribution. As of this writing, NodeChef will install version 5.6.32
Installs the latest version in the 7.0.x distribution. As of this writing, NodeChef will install version 7.0.26
Installs the latest version in the 7.1.x distribution. As of this writing, NodeChef will install version 7.1.12
Installs the latest version in the 7.2.x distribution. As of this writing, NodeChef will install version 7.2.0
Zip your PHP project folder and upload it from the dashboard and your PHP app should run with the version you specified. You can also use the CLI to deploy your PHP app.