I've recently added a new project named panel
in the Apache config file. Here is the VirtualHost
:
<VirtualHost *:80>
ServerName panel.lamtakam.com
ServerAlias panel.lamtakam.com
ServerAdmin myemail@gmail.com
DocumentRoot /var/www/panel/public
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Notes:
- I use Apache webserver
- I don't have
fpm
(for PHP) - I have two PHP version installed on the server
7.2
and7.4
and both areenabled
.
When I run the project above throw the browser, I get the following error:
Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0".
Which means it's getting executed using php7.2
. Now I need to force Apache to execute it using php7.4
. Any idea how can I do that?