thedevdojo / voyager

Voyager - The Missing Laravel Admin
https://voyager.devdojo.com
MIT License
11.8k stars 2.67k forks source link

Use specific PHP version for command panel #5534

Open OnePeople opened 2 years ago

OnePeople commented 2 years ago

Laravel version

8

PHP version

7.2

Voyager version

1.2

Database

8

Description

We use multiple php vericion on one server, by default for other sites we have php 8.0 for run concole command. but for site with voyager we use 7.1 php all worked exept console command- bocouse imposible run php7.3 artisan ...

if run just php artisan .. then runnning incorrect php versioon

how we can change php7.3 artisan ... and run not php artisan ... ?

Steps to reproduce

run concole command.

Expected behavior

run concole command by specific php version , need toadd in config 'phpX.X' for run any command

Screenshots

No response

Additional context

No response

howdu commented 2 years ago

Wouldn't of thought this was a Voyager issue.

But you can easily change the CLI php version and switch it back after: sudo update-alternatives --set php /usr/bin/php7.3