OpenEMR Facebook Page OpenEMR Twitter Page OpenEMR Google+ Page OpenEMR Diaspora Page
OpenEMR Professional Support
Personal tools

Microsoft Windows Installation

From OpenEMR Project Wiki

Jump to: navigation, search

MicrosoftWindows

This is a help file for installing the electronic health record of OpenEMR using XAMPP.

Before we start, I will make refernces to "a plain text editor." This by definition is NOT a word processor. You have to use an editor that does not introduce special formatting characters. You can not use Microsoft Word or Microsoft Word Pad. Note Pad is OK but it globs all the lines into one big huge line. I like "edit" from the command line. All the lines break correctly and it easier to see what is going on.

I downloaded XAMPP for Microsoft Windows:

http://www.apachefriends.org/download.php?xampp-win32-1.4.13.zip

I unzipped the package to

C:\xampp

I ran

C:\xampp\setup_xampp.bat

I looked in the Control panel: Services and stopped and disabled

IIS Admin Services

HTTP SSL

World Wide Web Publishing Services

These services prevent Apache from listening on port number 80.

I then ran

C:\xampp\xampp-control.exe

I used xampp-control.exe to start and stop Apache.

Once Apache was running you should be able to see the XAMPP default splash page in your browser at:

http://localhost/

I used the xampp-control.exe to restart Apache.

I used the xampp-control.exe to start MySQL.

MySQL by default does not have a password set so for security purposes:

C:\xampp\mysql\bin\mysqladmin -u root password sometrickysecret

Watch out! We need a PHP friendly password here for later use. The rules for making passwords in PHP are a bit different from Unix, Linux and the newer versions of Microsoft Windows. Most of the special characters won't work. They will be removed by the PHP software for Web security (Prevention of cross site scripting attacks, SQL injection etc.) Generally you need some small case letters, Upper case letters, numbers and some special symbols. Usually hyphens, underscores and likely periods will work.

You should then be able to log into the MySQL server from a command prompt with

C:\ mysql -u root -p mysql

mysql> \q

C:\

Change to:

C:\xampp\phpmyadmin

C: edit config.inc.php //using a true text editor

look for:

$cfg['servers'][$i]['user'] = 'root'; $cfg['servers'][$i]['auth_type'] = 'config'; $cfg['servers'][$i]['password'] = ;

change to:

$cfg['servers'][$i]['user'] = 'root'; $cfg['servers'][$i]['auth_type'] = 'http'; $cfg['servers'][$i]['password'] = 'sometrickypassword'; //your MySQL root password

Then save and close.

Download and Unzip:

http://prdownloads.sourceforge.net/openemr/openemr-2.7.2.tar.gz?download

rename openemr-2.7.2 and move it to

C:\xampp\htdocs\openemr

You'll need to edit a plain text editor:

C:\xampp\htdocs\openemr\interface\globals.php

Look for the spot where


require_once(dirname(__FILE__) . "/../includes/config.php");
//Global variable file in which colors and paths are set for the interface.
//
//
///////////////////////////////////////////////////////////////////
//THESE VALUES MUST BE SET BEFORE OPENEMR WILL FUNCTION:
///////////////////////////////////////////////////////////////////
//Set this to the full absolute directory path for openemr:
$webserver_root = "/var/www/html/openemr";

This needs to be changed for your webserver_root:


require_once(dirname(__FILE__) . "/../includes/config.php");
//Global variable file in which colors and paths are set for the interface.
//
//
///////////////////////////////////////////////////////////////////
//THESE VALUES MUST BE SET BEFORE OPENEMR WILL FUNCTION:
///////////////////////////////////////////////////////////////////
//Set this to the full absolute directory path for openemr:
$webserver_root = "C:/xampp/htdocs/openemr";

Be careful with this path. You need forward slashes even on Windows. Case is important. "C" and "c" are not the same.

In your favorite Web browser enter:

http://localhost/openemr/setup.php

The setup.php should come up.

Click on "continue".

Under the Server section (line#5) enter a password for the openemr user:

sometrickyopenemrpassword

The rules for making passwords in PHP are a bit different from Unix, Linux and the newer versions of Microsoft Windows. Most of the special characters won't work. They will be removed by the PHP software for Web security (Prevention of cross site scripting attacks, SQL injection etc.) Generally you need some small case letters, Upper case letters, numbers and some special symbols. Usually hyphens, underscores and likely periods will work.

Under Client section (line #7) enter the mysql root password:

sometrickypassword

I created myself as the initial user:

drbowen

Real Name:

Sam Bowen

Initial group:

OEMR

(or anything you want)

Ignore the stuff about changing the permission on the sqlconf.php for now. (Not the most secure thing but it will get you up and running for now)

Now create two new directories:

C:\xampp\htdocs\openemr\interface\main\calender\modules\PostCalender\pntemplates\compiled

C:\xampp\htdocs\openemr\interface\main\calender\modules\PostCalender\pntemplates\cache

Make sure you have permissions full control by everyone on these two directories. Mine worked out-of-the-box without modification. For sure the owner of the apache web server process needs read:write permissions on these directories.

Dude!

Type

http://localhost/openemr/

you might need:

http://localhost/openemr/index.php

and the initial user will be what you used during the setup process. The initial password is always "pass".

So I entered

drbowen

pass

and the OpenEMR health record seems to come up working perfectly.

Billing takes additional configuration.

Windows uses access control lists to protect files and directories. My permissions are currently on the default setting after using the administrator to set up OpenEMR.

For the C:\XAMPP\htdocs\openemr directory and contents:

authenticated users:read and execute, read, list folders (probably not necessary)

administrator:owner/full control