Checking your Ubuntu Version
Related Posts
Install PECL uploadprogress
https://drupal.org/node/793264 https://drupal.org/node/1332446
PHP code is not being executed, instead code shows on the page
For php7.4 sudo a2enmod proxy_fcgi setenvif sudo a2enconf php7.4-fpm sudo service apache2 restart