Currently I am working on a laravel project that uses some cron jobs to process data.
The default php version on this server is 7.0.7
. However this project runs on php 5.6.6
through phpbrew.
When I execute a script inside my project folder through laravel artisan, phpinfo()
returns php version 5.6.6
. When my cron job executes the exact same command it returns version 7.0.7
.
Is it possible to say to my cron to use a different php version through phpbrew? How would it look like?
My cron job looks like:
00 12 * * * php /projectfolder/artisan execute:command