Error "The PHP cli binary is not set for the selected PHP version"

Discussion in 'General' started by Masters of Media, Jun 11, 2025.

  1. Masters of Media

    Masters of Media Member HowtoForge Supporter

    I made a change to an existing shell user. I received an error message "The PHP cli binary is not set for the selected PHP version" in the ISPConfig Log. I checked the PHP version used for the website. It's an additional PHP version so I checked the settings under the tab "PHP-CLI settings" in the "Path to the PHP CLI binary" field. It is empty. However, I could not find instructions on how to populate this field.

    What should I fill out there? And will that solve the error?
     
  2. michelangelo

    michelangelo Active Member

  3. Masters of Media

    Masters of Media Member HowtoForge Supporter

    Hello Michelangelo, thanks for the suggestions. I'm not sure however what you mean by the reference to the Jailkit sections. Could you elaborate a little more on that please?
     
  4. michelangelo

    michelangelo Active Member

    The jk_init.ini contains the paths to the binaries that can be deployed to a jailkit jail.
    Since you didn't mentioned what OS you are using I suggested to you to have a look at this file for path infos for the PHP versions, or to get a general idea of how Jailkit works.
     
  5. nikos_pr

    nikos_pr New Member

    Example for Debian 12 with fresh ISPC V.3.3.
    The PHP Jailkit sections are located on:
    /etc/jailkit/jk_init.ini

    System - Additional PHP Versions
    Example for PHP 8.4:
    -----------------
    PHP-CLI Settings
    -----------------
    Path to the PHP CLI binary : /usr/bin/php8.4
    PHP Jailkit section: php8_4
     
    Masters of Media likes this.
  6. Masters of Media

    Masters of Media Member HowtoForge Supporter

    Thank you for the clarification nikos_pr
     
  7. Masters of Media

    Masters of Media Member HowtoForge Supporter

    ahrasis and experience like this.
  8. experience

    experience New Member

    I stumbled across this problem today on a new ubuntu 24.04 install.

    Fix:
    System > Additional PHP Versions > Select PHP Version e.g. PHP 8.4 > PHP-CLI settings

    Insert the following and amend for the version of PHP

    Path to the PHP CLI binary: /usr/bin/php8.4
    PHP Jailkit section: php8_4

    I'm not sure if i needed to, but i also added to
    System > Server Config > select server > Jailkit

    Jailkit chroot app sections :
    Added: php php_common php8_0 php8_1 php8_2 php8_3 php8_4

    These can be found in the /etc/jailkit/jk_init.ini file
     
  9. michelangelo

    michelangelo Active Member

    You don't need to add that to your server's Jailkit chroot app sections since it adds all these PHP versions to all your webspaces that use Jailkit. It will likely just consume more disk space for PHP versions that are probably not used in or by your jails.

    It is actually sufficient if you fill out the PHP cll binary infos in the PHP-CLI settings tab.
     
  10. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

Share This Page