Be able to select a specific php version as default for the commands path

ben shared this idea 3 weeks ago
Open Discussion

Hello,


I've raised this issue with support a few times, but it seems there hasn't been any solution so far. 

Imagine managing 20 accounts on Spanel, and every day you have to repeatedly type paths like:


/opt/remi/php81/root/usr/bin/php artisan queue:work

/opt/remi/php81/root/usr/bin/php artisan route:cache

/opt/remi/php81/root/usr/bin/php artisan telescope:clear

/opt/remi/php81/root/usr/bin/php artisan queue:listen

/opt/remi/php81/root/usr/bin/php /usr/local/bin/composer dump-autoload

/opt/remi/php81/root/usr/bin/php /usr/local/bin/composer install

/opt/remi/php81/root/usr/bin/php /usr/local/bin/composer require doctrine/dbal

/opt/remi/php81/root/usr/bin/php artisan migrate


It becomes even more complicated when each account uses a different PHP version. A much-needed update would be the ability to set a "default running PHP" for each account. Setting the PHP version in PHP Manager doesn’t help in this scenario.


If we could simply run commands like:


php artisan migrate

Instead of having to remember and type:


/opt/remi/php81/root/usr/bin/php artisan migrate

/opt/remi/php80/root/usr/bin/php artisan migrate

/opt/remi/php71/root/usr/bin/php artisan migrate

/opt/remi/php74/root/usr/bin/php artisan migrate

/opt/remi/php72/root/usr/bin/php artisan migrate

/opt/remi/php82/root/usr/bin/php artisan migrate

It would be so much easier. Keeping track of these paths across multiple accounts is incredibly difficult.


Please consider this feedback. It seems there is no workaround yet.


Thank you,


Ben

0 votes

Comments (0)

Leave a Comment