I have several sites developed with an old version of laravel that requires PHP 7.0 But the version of phpmyadmin requires 7.4 min.
I have in Apache the following error in APACHE:
[Mon Jan 13 19:00:58.133861 2025] [:error] PHP Parse error: syntax error, unexpected 'const' (T_CONST), expecting variable (T_VARIABLE) in /usr/share/php/PhpMyAdmin/MoTranslator/Translator.php>
I tried these:
`sudo apt install php7.4 php7.4-fpm php7.4-mysql
sudo a2enconf phpmyadmin sudo systemctl enable php7.4-fpm sudo a2enmod php7.0 sudo a2enmod php7.4 sudo a2enmod proxy_fcgi setenvif`
In phpmyadmin.config
<IfModule mod_proxy_fcgi.c> SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost" </IfModule>
The command "sudo systemctl status php7.4-fpm" returns ENABLED (for 7.0 y 7.4)
But phpInfo() in phpmyadmin returns 7.0
I need that phpmyadmin runs with 7.4 and the rest 7.0.
Thank you for the time!!