Install OpenEMR on Windows 10

I am using chrome and is states the site is not secure. I also get an error saying that the certificate is not trusted.

I went to my error log and I have several errors
Here is an example of one:

[php7:error] [pid 6956:tid 668] [client ::1:50839] PHP Fatal error: Allowed memory size of 2097152 bytes exhausted (tried to allocate 32768 bytes) in C:\Users\lonni\Downloads\XAMPP\htdocs\openemr-5.0.2\vendor\adodb\adodb-php\adodb.inc.php on line 1703

I also had this error several times:
[ssl:warn] [pid 7060:tid 560] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name - I was able to fix this one thanks to a google search - I think

I tried to download the patch for windows thinking that was the problem but I am still not able to logon to the site.

Thank you!

In order to change to Docker, do I need to delete everything that I have downloaded so far first ?

I thought Docker was just a Demo, can I actually run the full version on Docker?

Hi Lonnie,

It uses http instead of https unless you configure ssl after installation, I think.

When you use the xampp method you need to make some changes to the php.ini file.
https://www.open-emr.org/wiki/index.php/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29.3F

I think docker is the preferred method from now on. I go over how to set OpenEMR up on Ubuntu using docker here.

I believe @jesdynf has set up openemr on windows 10 using docker if you run into any problems on the windows side of things.

Setting this up in Docker would set it up in a completely different place than any XAMPP install would’ve. Note that you’ll need to make sure you’ve either turned XAMPP off (to release contention for 80/443) or you’ll need to make changes to the docker-compose.yml file before launch.

Here’s a playbook for installing Docker on Windows 10 Pro.

##### Run OpenEMR Dockers in Windows.
# Requirements: Windows 10 Pro, Enterprise *only*.
# Warning: Hyper-V service mutually exclusive with VirtualBox, VMWare.

### Enable virtualization (VT-d, AMD-V) in BIOS.
# (see motherboard documentation for more information)

### Install chocolatey package manager.
# Open administrative command line.
powershell
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
exit

### Enable Hyper-V in the OS.
# https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
# https://stackoverflow.com/questions/39684974/docker-for-windows-error-hardware-assisted-virtualization-and-data-execution-p
# Open administrative command line.
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
# Reboot.
shutdown /g

### Install software.
# Open administrative command line.
choco feature enable -n=allowGlobalConfirmation
# choco install conemu git vscode -y
choco install docker-desktop docker-compose -y
# Reboot if necessary, otherwise start docker-desktop from the Start menu.

# Do you have the repo? If you don't, build it and move into it.
git clone https://github.com/openemr/openemr.git openemr
cd openemr
docker-compose up -d
# at some point you will be asked about sharing a drive with Docker -- say yes
# initial build will take approximately forever

# Test Docker -- browse to http://localhost:8300
# Edit local tree, reload to see changes.
# Further information in https://github.com/openemr/openemr/blob/master/CONTRIBUTING.md .

Thank you all for your help !! I think I am going to start over from scratch at this point and use Docker. Is there a video of this that can show me from the beginning?

I am not an IT person so some of the things that is advised I am not quite sure how to find or implement.

Ladies and Gentleman …I made it in !!! Thank you all for all your support!!

Now a couple questions:

How do I make sure that my program is secure? I used the admin/pass to login but I am sure I should change this in the admin settings correct?

Thank you all again!!

My solution, i deleted previous openemr and xampp and started over with docker toolbox/virtual box and downloaded openemr application

Security is a bit of a spectrum. Tools that make life more convenient like phpmyadmin or portainer can add new vulnerabilities.

It also has to do with how you set up your network, rather than just configuring parameters within OpenEMR itself.

This page may help.
https://www.open-emr.org/wiki/index.php/Securing_OpenEMR

hi @Lonnie_Jones1 ,

You’ve installed the openemr development version and docker geared towards developers. The nice thing, though, is that it’s super simple to drop the current dockers and install with a production OpenEMR 5.0.2 docker.

Go back into the openemr directory and issue following command to drop the current docker setup (this removes it all):
cd openemr
docker-compose down -v

then remove the openemr directory:
cd ../
rm -fr openemr

then make the openemr directory again and go into it:
mkdir openemr
cd openemr

then get a docker-compose.yml script to build 5.0.2 openemr (below line is one line):
wget https://gist.githubusercontent.com/bradymiller/8f8dc5215b07d287f7dc0fed80bf2b9d/raw/9b2a762849bbf8ce0a0d4dff30c4a359cfa88a44/openemr-502-docker-example-docker-compose.yml

then rename the downloaded docker-compose.yml script:
mv openemr-502-docker-example-docker-compose.yml docker-compose.yml

then build the dockers:
docker-compose up -d
(wait about 10 minutes and it should then work)

Thank you ! I was wondering why some things were missing.
How do I get to the openemr directory ? is that this

hi @Lonnie_Jones1 ,
That doesn’t look like Windows. Did you get this following @jesdynf instruction set above or is this the 5.0.2 appliance?

This is the 5.0.2 appliance

I also have Windows 10 not the Pro version so I was not sure if her instructions would work for me since I have to use the docker toolbox for it to work.

I also not do understand all the commands and where to put them, unfortunately I am learning as I go.

@RachelEllison @sjpadgett

Hi,
I work in at a university in the College of Medicine. The center I am apart of is a simulation center where we have year 1 med students all the way to year 4 and residents who get to experience patient encounters or they get to be part of a simulation with our mankins. At the center we would like to implement an EMR and we came across OpenEMR. I have been trying to download the software and I have been trying to create a server on a desktop that is running Windows 10. Much like Lonnie I used XAMPP and I have been running into issues. I am not sure what Im looking at. I have started the Windows 10 webserver and have downloaded XAMPP which I think are now conflicting. I saw on Youtube that @RachelEllison has a walkthrough for a Ubuntu virtual box but if we have say 20 students how would they be able to access the database if we use a virtual box.

I would like to let everyone know that I am a novice and am trying to learn as things come up. I am currently very lost. My goal would be that I would be able to host it on this desktop as a server and that students when visiting our center will be able to get access to the EMR and use it when they have an encounter. Do I need a virtualbox setup? If not where would I find a walkthrough?

Thank you for you time and help.

Best,

Rupak

hi @Rupak , you were successful setting up OpenEMR? It’s a web server so can fix that ip address and then point the clients to it.

@stephenwaite Thank you for checking in! Yes I was able to get it up and running yesterday. Today I will be orienting myself to the platform. I noticed an error message at the top of my account which I have not been able to fix yet.

Error:
Notice: Only variables should be passed by reference in C:\xampp\htdocs\openemr\src\Menu\MainMenuRole.php on line 68

Any thoughts?

Thanks again for checking in!

Best,

Rupak

Nice job Rupak! It’s part of setting up php.

@stephenwaite You have been such a great help! Thank you so much! This was awesome!

Next up: upgrade to 6.1.0 :slight_smile:
https://www.open-emr.org/wiki/index.php/Windows_Upgrade_6.0.0_to_6.1.0

@stephenwaite The upgrade process was very easy for a person who has never done such a thing before. Again thanks for the awesome support you have given me today.

Best,
Rupak

1 Like