Update PHP and Core on Azure RHEL8 VM

Admin - Thomas Morel 1 Reputation point
2021-06-23T13:35:20.81+00:00

I stood up an Azure RHEL8 (8.2) VM but the default install of PHP is 7.2 and I need at least 7.4. How can I update it with the current Yum/dnf repos?

Additionally, how do I update my RHEL8 from 8.2 to 8.3?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,095 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,326 Reputation points Microsoft Employee
    2021-06-24T09:35:02.827+00:00

    @Admin - Thomas Morel , Thank you for your question.

    You can enter the OS, target PHP version and type of installation at https://rpms.remirepo.net/wizard/ and it will generate detailed steps to install the desired PHP version.

    To enable the module stream run the following command:

    dnf module enable php:remi-7.4  
    

    To update RHEL8 from 8.2 to 8.3 you can follow the answer here https://access.redhat.com/discussions/5664261?tour=8

    Here are some information related to image update behavior of RHEL on Azure:

    • If you provision a VM from a RHEL image that is connected to non-EUS repositories, you will be upgraded to the latest RHEL minor version when you run sudo yum update.
    • If you provision a VM from a RHEL image that is connected to EUS repositories, you will not be upgraded to the latest RHEL minor version when you run sudo yum update.

    For more information please check this article.

    ----------

    ​Disclaimer: This response contains a reference to a third-party World Wide Web site(s). Microsoft is providing this information as convenient to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    ----------

    Hope this helps!

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.