How to change the php.ini directives

NodeChef PHP hosting allows you to change any php.ini directives using a file with the extension .ini. You can review the list of directives than can be set here.


In order of highest precedence, php config values come from.

Step 1. Create an ini file under .bp-config/php/php.ini.d/

In the root folder of your application create the directory structure ./bp-config/php/php.ini.d/

Place a file with the extension .ini under this directory. We will use this file to enable both php and zend extensions. Your folder structure should look like this:

index.php composer.json .bp-config/ php/ php.ini.d/ my_directives.ini

Step 2. Specify the config values

You can use the below format to enable extensions in your .ini file.

default_charset="UTF-8" default_mimetype="text/xhtml"

Step 3. Deploy your applicaiton

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.