Using a Custom PHP Binary
daflare uses PHP to do the heavy lifting and requires PHP 7.3+
If your server has an earlier version of PHP installed, you may find the plugin displays the following error:
Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.x.x".
You can define a custom php binary for daflare to use via a GUI config page or via the command line.
After installing daflare (version 0.11.3b+) , visit the following page:
Fill in the location of your php binary and click on ‘Update’, then uninstall and then reinstall daflare.
Command Line Configuration
1. SSH in to your server and create a
install.config file in the daflare conf folder:
2. Inside the file, enter php= followed by the path to the php binary you wish to use:
NOTE: replace ‘/path/to/your/bin/php’ with the actual path to your php7 binary, eg. php=/usr/local/php73/bin/php
3. Save the file and exit to the command line
4. Using the DirectAdmin Plugin Manager, un-install daflare by clicking on + next to daflare and then on Un-Install, then click on + and Install to re-install daflare
You will see the following message displayed when you next install daflare:
daflare linked to custom PHP location: /path/to/your/bin/php
Go to the daflare Control Panel and it should be working.
From now on you can install any new version of daflare and it will automatically be updated to use your custom php binary.
If you don’t see the ‘daflare linked to custom PHP location’ message
Make sure that your install.config file exists and has the php=… line inside it
Make sure that the path to your php binary is correct
> PHP 7.3.27 (cli) (built: Feb 2 2021 10:32:50) ( NTS )
> Copyright (c) 1997-2018 The PHP Group
Make sure you are running daflare version 0.11.3b or greater.