title: Refusing because php8.0 could cause an invalid combination
body: <blockquote>
  <p>Error raised while trying to upgrade/update php version to 8.0 on
  amazon linux 2 (AWS ec2) Following the below procedure could raise
  error &quot;Refusing because php8.0 could cause an invalid combination.&quot;</p>
  </blockquote>
  <pre><code>sudo yum install -y amazon-linux-extras
  sudo  amazon-linux-extras | grep php
  sudo amazon-linux-extras enable php7.4
  sudo yum install php php7.4-{pear,cgi,common,curl,mbstring,gd,mysqlnd,gettext,bcmath,json,xml,fpm,intl,zip,imap}
  </code></pre>
  <p>eg:</p>
  <pre><code># amazon-linux-extras enable php8.0 
  </code></pre>
  <p>Refusing because php8.0 could cause an invalid combination.</p>
  <p><strong>Try the below steps to solve this</strong>
  //Remove the php</p>