ISPC Can't use different php version on jail

Discussion in 'Installation/Configuration' started by bandit, Sep 25, 2024.

  1. bandit

    bandit New Member

  2. bandit

    bandit New Member

    question is answered and done. thank you till
     
  3. nhybgtvfr

    nhybgtvfr Well-Known Member HowtoForge Supporter

    assuming that the different php versions are already included in the jail. the best option is for that ssh user to create a .bashrc file in their home directory and alias the php command to the version they want to use.. eg 'alias php=/usr/bin/php8.3'

    that way the ssh user themselves can easily change the default php version they use if they need to..

    or you could just provide the full path whenever you run any php from the cli.. eg /usr/bin/php8.2 /web/somefile.php
     
  4. pyte

    pyte Well-Known Member HowtoForge Supporter

    @bandit Do didn't have to repost this again :) @till could have just moved it for you
     

Share This Page