HOWTO Install on Windows

drbowen wrote on Sunday, June 12, 2005:

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

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 inn 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/

Stop Apache using xampp-control.exe.

OpenEMR has not yet been converted to PHP5 so I ran:

C:\xampp\php-switch.bat

entered:

4

OpenEMR expects Magic_quotes to be turned off.  I edited

C:\xampp\apache\bin\php.ini

About  way down I located and changed

Magic_quotes_gpc = On

to

Magic_quotes_gpc = Off

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

(I cheated here a bit. I actually downloaded and unzipped it in linux.  The WinZip sometimes breaks the lines in funny places. It has to do with the different line endings between linux and Microsoft Windows.  The default behavior of WinZip can be changed to “don’t automatically break the lines”.  Its this auto line breaking that doesn’t seem to cause trouble with Windows but plays havoc on some Unix files/programs. )

rename openemr-2.7.2  and move it to

C:\xampp\htdocs\openemr

In your favorite Web browser enter:

http://localhost/openemr/

You might need:

http://localhost/openemr/setup.php

The setup.php should come up.

Click 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\main\calender\modules\PostCalender\pntemplates\compiled

C:\xampp\htdocs\openemr\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 OpenEMR health record seems to be working fine.

Billing takes additional configuration.

This is a least secure configuration.  There are additional steps that need to be taken to tighten up security.

Sam Bowen

drbowen wrote on Sunday, June 12, 2005:

I left out a small but very important detail.  After you unpack openemr-2.7.2 and move it to:

C:\xampp\htdocs\openemr\

You’ll need to edit this file with a plain text editor:

C:\xampp\htdocs\openemr\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";