Invalid php version cli each site setting #113

Closed
opened 2026-04-05 20:25:31 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @khanhicetea on 3/28/2025

CloudPanel version(s) affected

2.5.0

Description

Hi thanks for cloudpanel,

Btw, the default php version of cli always latest version (8.4) instead of version setting for a specified site.
So composer run causes conflicts, cronjob run wrong version

How to reproduce

Try to run cli in site bash shell

Possible Solution

Can we have a .bashrc which has value

alias php='/usr/bin/php8.1'
alias composer='/usr/bin/php8.1 /usr/local/bin/composer'

OR change PATH env

Additional Context

No response

*Originally created by @khanhicetea on 3/28/2025* ### CloudPanel version(s) affected 2.5.0 ### Description Hi thanks for cloudpanel, Btw, the default php version of cli always latest version (8.4) instead of version setting for a specified site. So composer run causes conflicts, cronjob run wrong version ### How to reproduce Try to run cli in site bash shell ### Possible Solution Can we have a .bashrc which has value ``` alias php='/usr/bin/php8.1' alias composer='/usr/bin/php8.1 /usr/local/bin/composer' ``` OR change PATH env ### Additional Context _No response_
Sign in to join this conversation.