2

Deploying OpenEMR on Azure - Microsoft Community Hub

 1 year ago
source link: https://techcommunity.microsoft.com/t5/healthcare-and-life-sciences/deploying-openemr-on-azure/ba-p/3741455
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Deploying OpenEMR on Azure

Deploying OpenEMR on Azure
Published Feb 13 2023 01:11 PM 317 Views

Open EMR Deployment

Below is a detailed guide to installing OpenEMR Leveraging Azure Web Apps + Database. This walkthrough will guide you in:

  • Creating the Web App + Database
  • Downloading the OpenEMR Source Code
  • Deploying the Source to your Azure Web App
  • Running the database installScript from a command prompt

Not an Azure customer yet? Click here to sign up and get $200 in free Azure credit.

  1. Browse to the Azure Portal and select “Create a Resource”
thumbnail image 1 of blog post titled                                              Deploying OpenEMR on Azure
  1. Search for and select “Web App + Database
”
thumbnail image 2 of blog post titled                                              Deploying OpenEMR on Azure
  1. Click “Create”
thumbnail image 3 of blog post titled                                              Deploying OpenEMR on Azure
  1. Complete the form (note - only PHP 8.1 and lower have been tested) and click “Review and Create”
thumbnail image 4 of blog post titled                                              Deploying OpenEMR on Azure
  1. Review Settings - be sure to capture username / password for your database for later use, and then click “Create”
thumbnail image 5 of blog post titled                                              Deploying OpenEMR on Azure
  1. Wait for deployment to complete and click “Go to resource”
thumbnail image 6 of blog post titled                                              Deploying OpenEMR on Azure
  1. Download openemr-7.0.0.zip from here: https://www.open-emr.org/wiki/index.php/OpenEMR_7.0.0_Windows_Installation
  2. Extract and open the extracted folder within Visual Studio Code
  3. Ensure that the Azure App Service Extension is installed in Visual Studio Code
thumbnail image 7 of blog post titled                                              Deploying OpenEMR on Azure
  1. In the Azure Portal, browse to the resource group that was chosen as part of your deployment and find the “Azure Database for MySQL flexible server” resource
thumbnail image 8 of blog post titled                                              Deploying OpenEMR on Azure
  1. Select the “Connect” blade under the “Settings” section, and click “Download SSL Certificate”
thumbnail image 9 of blog post titled                                              Deploying OpenEMR on Azure
  1. Open Visual Studio Code and copy the downloaded certificate into the “/sites/default/documents/certificates” folder and rename it to “mysql-ca” with no file extension
thumbnail image 10 of blog post titled                                              Deploying OpenEMR on Azure
  1. Within Visual Studio Code, navigate to “/contrib/util/installScripts/InstallerAuto.php “ and comment out the “exit;” statement on line 78, then save the file
thumbnail image 11 of blog post titled                                              Deploying OpenEMR on Azure
  1. Select the Azure icon in Visual Studio Code. You may need to sign-in at this stage. Once you’ve signed in, expand the Azure Subscription and App Services and look for the App Service you created in Step 5.

thumbnail image 12 of blog post titled                                              Deploying OpenEMR on Azure


15. Right click on the desired App Service, and click “Deploy to Web App”

thumbnail image 13 of blog post titled                                              Deploying OpenEMR on Azure
  1. Select the source folder you wish to deploy. By default this will be the current folder open in Visual Studio Code

thumbnail image 14 of blog post titled                                              Deploying OpenEMR on Azure

  1. Click “Deploy”

thumbnail image 15 of blog post titled                                              Deploying OpenEMR on Azure
  1. Open the output window to view the progress. This may take some time

thumbnail image 16 of blog post titled                                              Deploying OpenEMR on Azure

thumbnail image 17 of blog post titled                                              Deploying OpenEMR on Azure
  1. Upon successful completion, browse back to the selected Resource Group, and select your App Service
thumbnail image 18 of blog post titled                                              Deploying OpenEMR on Azure
  1. Select “SSH” Under “Development Tools”, and click “Go ->”
thumbnail image 19 of blog post titled                                              Deploying OpenEMR on Azure
  1. Navigate to the installScripts folder using the command “cd site/wwwroot/contrib/util/installScripts"
thumbnail image 20 of blog post titled                                              Deploying OpenEMR on Azure
  1. Execute the command “php -f InstallerAuto.php server=<server-name> loginhost=% root=<username> rootpass=<password> login=<openemr-db-user> pass=<openemr-db-pass>” using the username noted in step 5 for “root” and password noted in step 5 for "rootpass" and a username and password of your choosing for “openemr-db-user “openemr-db-pass”. You may optionally include any of the parameters located on lines 84-102 of “installerAuto.php” if you wish to change any settings from their defaults. For a production installation, it is recommended to change any username and password settings from their default value.

    You can obtain the server name by browsing to your resource group and clicking the Azure Database for MySQL flexible server resource and copying the “Server name” property
thumbnail image 21 of blog post titled                                              Deploying OpenEMR on Azure

thumbnail image 22 of blog post titled                                              Deploying OpenEMR on Azure

thumbnail image 23 of blog post titled                                              Deploying OpenEMR on Azure
  1. Execute the above command, it will take some time to complete.

Once this command completes and returns to the command prompt, you may close the SSH browser tab to return back to your Azure Web App
  2. Select the “Overview” blade and click the “URL” to browse to your site
thumbnail image 24 of blog post titled                                              Deploying OpenEMR on Azure
  1. If your install was successful, you will see the OpenEMR Login Screen. By default, the username is “admin” and password is “pass” unless these were changed when running the install command from step 22.
thumbnail image 25 of blog post titled                                              Deploying OpenEMR on Azure
  1. Congratulations! You have successfully installed OpenEMR on Azure!
thumbnail image 26 of blog post titled                                              Deploying OpenEMR on Azure

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK