Install OpenEMR on the internet

octort wrote on Tuesday, May 24, 2011:

Hi,

I am need some step by step help to install open emr on line. I just need to copy all the files from my hard drive? please advice. thanks!

mdsupport wrote on Friday, May 27, 2011:

Can you explain a bit more in detail?  What files do you have on your hard drive?

yehster wrote on Friday, May 27, 2011:

It is not clear at all what you mean by installing openemr “on the web” or “on the internet”.  Are you trying to deploy it to a hosting service? or are you trying to expose a local installation to the internet.  The steps required for installation are basically the same in either case.

I suggest that you read the install guide in more detail.  However the difference lies when deploying to a hosting service as to how to determine database parameters.  This is going to depend on what interfaces the hosting service provides for database management.

http://wiki.oemr.org/wiki/OpenEMR_Installation_Guides

It is difficult to answer queries such as this as they lack sufficient detail.

octort wrote on Friday, May 27, 2011:

Basically, what I am looking for is to load OpenEMR on the web. <<www.site.com/openemr>>
I loaded mysql databases and the openemr folder on my website. The problem I am having is to open it when the files are hosted on my web site. I looked everywhere for some sort of guide to how to install OpenEMR on line. Currently it is working on a Linux machine with no problems. I need some advice in how to move a local install to the web. just like the demo at www.oemr.org but real data. Thanks in advance!

barbaralockwood wrote on Sunday, May 29, 2011:

You are leaving out information necessary to answer your question.
Is the web host machine running Linux or Windows?
How much control do you have of the host?  Some cheaper hosts give you limited access to controls.

But the procedure for installing OpenEMR is is pretty much the same whether the machine is in the same room or a far-away host site.

mdsupport wrote on Sunday, May 29, 2011:

For starters, do you have complete control over the machine reached by ‘www.site.com’ or is it just a web server? 
You need to explain the complete set up and your technical capabilities for others to help appropriately.

octort wrote on Monday, May 30, 2011:

I bought a domain and hosting service. I have access to cpanel, wich allows me to upload mysql dbs and php code. I upload oemr into my web folder. When I enter http://www.mysite.com/openemr I get an error. Anyone knows how to install oemr on a hosting web services machine?

octort wrote on Monday, May 30, 2011:

After I enter the URL: http://www.site.com/openemr I get an error page and the URL changes to: http://www.itdefined.com/openemr/setup.php?site=default. I think the error is related to $site_id variable in the following code:
(the file is /home/site/public_html/openemr/index.php)

<?php
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.

// Set the site ID if required.  This must be done before any database
// access is attempted.

if (!empty($_GET))
  $site_id = $_GET;
else if (is_dir(“sites/” . $_SERVER))
  $site_id = $_SERVER;
else
  $site_id = ‘default’;

require_once(“sites/$site_id/sqlconf.php”);
?>
<html>
<?php if ($config == 1) { ?>
<body ONLOAD=“javascript:top.location.href=’<?php echo “interface/login/login_frame.php?site=$site_id” ?>’;”>
<?php } else { ?>
<body ONLOAD=“javascript:top.location.href=’<?php echo “setup.php?site=$site_id” ?>’;”>    
<?php } ?>
Redirecting…
</body>
</html>

I changed the variable $config = 1 to 0 in the file: /home/site/public_html/openemr/sites/default/sqlconf.php

mdsupport wrote on Monday, May 30, 2011:

Not sure how you uploaded mysql dbs.  In any case, assuming you have basic knowledge of the components needed for this application to run, you should follow link given by yehster and do the following:

1. Install a fresh copy of emr on your new server - hopefully the same version as what you have now. The scripts are solid so if any of the steps break, get help from your hosting service.
2. Make sure emr at site.com works - if it does not, get your hosting service to help you.
3. Run the backup on your linux server.
4. Restore the backup on your new server.

All the best.

octort wrote on Monday, May 30, 2011:

Thanks! I finally installed OpenEMR on my dot com. Now I need to make sure that all the data is going to be secure. Any suggestions about protecting ALL patients data saved on my hosting company?

dkdipak1 wrote on Monday, April 29, 2013:

can you please help me installing on web. i have added DB some how but need to connect it, please help its giving error in line 363 where “$this”, needs to be defined