How to set the php path

I am using Omeka S on a server with multiple php versions.

How can I say to Omeka S the path of the php version I want to use? I don’t see such option on Omeka S (there is this option on Omeka Classic).

I tried to modify phpcli_path in local.config.php with my php7 (the one I want) path with no result.

Omeka S is a PHP script so the PHP version is chosen before reading any Omeka file.
phpcli_path is only used when executing a Job with PHP exec() function.

Only your server can choose what PHP binary to use.

What PHP SAPI do you have? What is your HTTP server?

An example with NGINX and another one with Apache. Note that it seems with Apache you are obliged to use fastCGI SAPI.