title: How to update PHP versions with Yum on AWS Linux / CentOS
body: <p>I have a web server with PHP 7.3 installed (And Apache + Wordpress), plus a number of PHP related modules. This server is on AWS Linux. </p>
  
  <p>When the AWS repo makes PHP 7.4 available, what's the best way to upgrade the PHP 7.3 packages to 7.4 and preserve my PHP configs? I'm assuming that <code>sudo yum upgrade</code> isn't going to cut it. Will I need to uninstall php73-* and then install php74-*?</p>
  
  <p>By way of showing what I have:</p>
  
  <pre><code>yum list installed *php*
  Loaded plugins: priorities, update-motd, upgrade-helper
  Installed Packages
  php73.x86_64                       7.3.17-1.25.amzn1               @amzn-updates
  php73-cli.x86_64                   7.3.17-1.25.amzn1               @amzn-updates
  php73-common.x86_64                7.3.17-1.25.amzn1               @amzn-updates
  php73-gd.x86_64                    7.3.17-1.25.amzn1               @amzn-updates
  php73-json.x86_64                  7.3.17-1.25.amzn1               @amzn-updates
  php73-mbstring.x86_64              7.3.17-1.25.amzn1               @amzn-updates
  php73-mysqlnd.x86_64               7.3.17-1.25.amzn1               @amzn-updates
  php73-pdo.x86_64                   7.3.17-1.25.amzn1               @amzn-updates
  php73-process.x86_64               7.3.17-1.25.amzn1               @amzn-updates
  php73-xml.x86_64                   7.3.17-1.25.amzn1               @amzn-updates
  </code></pre>