title: Laravel: how to specify the php version?
body: <p>I have a Laravel (5.7.19) app running with apache2 on a redhat7 machine.  There are php5.6, php7.1 and php7.4 installed on the machine and somehow apache uses php5.6 as the default and the app doesn't work with php5.6.  Is there a way to specify a php version for a Laravel app, such as setting the php version in .env or some other config file of the app?  I've googled around and couldn't find an answer.  Right now the only way I could make the app to work is to disable php5.6 and then apache would use php7.1 as the default.</p>