Not working with HTTPS://

malik8515 wrote on Friday, January 27, 2012:

If I use http:// everything works fine but when I use https:// the picture icons don’t show up.  I don’t mind that but some of the other features don’t work as well like the billing part doesn’t generate x12.  I am new with this and will really appreciate any help. 

blankev wrote on Friday, January 27, 2012:

As far as I can advise you, but I am not a programmer:

Check the direct and indirect created link towards another page. Most of them should be changed to https://

Please remember to make a record of all places with an http://  that needed a change to https:// so we can make a note for the WIKI pages for other https://…………… safety users.

If needed I will help with placemant in the WIKI pages.

Pimm Blankevoort
Curacao 

gsporter wrote on Friday, January 27, 2012:

I do not think changing any code is necessary.    Its sounds like your web server is misconfigured. You may have to change your web server or virtual host configuration.  You do not mention what platform you are running (Windows or Linux) but you might look at the openemr wiki 

http://www.oemr.org/wiki/2._SSL_Configuration

If that does not work check  Google for ssl for your web server and OS.

GP

malik8515 wrote on Friday, January 27, 2012:

I am using Linux.  I also had same problem when I tried to use sub domain like openemr.mydomain.com.  Now I still use this subdomain address but I link it to http://mydomain.com/openemr and it works fine.  If I link it to https://mydomain.com/openemr then the icons and some of the other functionality missing.  If I try the direct address https://mydomain.com/openemr I still have the same problem.

Most of the program works fine either way.

thanks

gutiersa wrote on Friday, January 27, 2012:

How did u set up your ssl? What is your platform and versions of all: apache, mysql, etc? My server is ssl and I do not have that problem
Maybe I can help u troubleshoot it

gsporter wrote on Friday, January 27, 2012:

Openemr should work as is over ssl if apache is correctly configured.

You might try this as a prototype to trouble shoot your physical server.
Download the Turnkey Linux LAMP stack as a vmware image
Download:191MB VM (sig)  -
http://www.turnkeylinux.org/lampstack

Fire it up and set passwords, ip’s etc.

From this point you can either work from the vmware console or ssh.
I like to use ssh and putty (free ssh client)
It allows me to save my work and cut and paste to avoid errors

Install dependancies (Note: from the site deb package)
makepasswd, libapache2-mod-php5, libdate-calc-perl, libdbd-mysql-perl, libdbi-perl, libhtml-parser-perl, libtiff-tools, libwww-mechanize-perl, libxml-parser-perl, php5, php5-mysql, php5-cli, php5-gd, php5-xsl, php5-curl, php5-mcrypt, php-soap, imagemagick

cd /var/www
wget http://downloads.sourceforge.net/openemr/openemr-4.1.0.tar.gz
tar -pxvzf openemr-4.1.0.tar.gz
mv openemr-4.1.0 openemr
chown –R root:root openemr
rm *.gz

You will probable not need this but it case something didn’t get installed

apt-get -f install

The rest of the OpenEMR set up is thru the web browser
http://<your server ip>/openemr/setup.php

SSL (https:) should work for everything

The latest patch to OpenEMR 4.1.0 is six (1/15/12)
cd /var/www/openemr
wget http://www.open-emr.org/patch/4-1-0-Patch-6.zip

Confirm overwriting All (A)
rm –R interface/main/calendar/modules/PostCalendar/pntemplates/compiled/*
Open web browser and go to http://your_server_name_or_ip/openemr/sql_patch.php

I use the Turnkey Linux iso’s to install both virtual and physical machines.   If you want to use it
for your actual box let me know because I can email you my steps for securing it.

I usually disable http (80) and the web shell.  It also has webmin installed for remote admin which is nice.
Finally encrypted backup to the Amazon cloud  lets me automate backups at $0.15/gig per month

GP

malik8515 wrote on Saturday, January 28, 2012:

I am using one of the cheap hosting companies and the only problem I get with SSL is no pictures and I can not generate useful X12 file. I gives permission denied error. I have set all permissions to 777 and this still doesn’t work.   here are some of the details:
mySQL 5.1.56
PHP 5.2.17
Apache 2.2.21
OS linux
perl 5.10.1

Would really appreciate simpler instructions. 

gsporter wrote on Saturday, January 28, 2012:

Sorry, thought you were on physical box.     What tools does your hosting service provide you?  i.e. cpanel
Due to lack of informaton to help your best bet would be to contact your provider.  If your is like the one I’ve
used you had to PAY for a ssl certificate and they are usually more than helpful in getting you set up correctly
since they want the annual fees for it.

GP

gutiersa wrote on Saturday, January 28, 2012:

Are you able to generate x12files Under http://? I think it should not be any  different. The x12 gets saved to the edi folder which is in the sites directory. It needs to be writable by the server. You should also be given the option of saving to your
Local computer.

I agree, your hosting company would be able to fix your ssl configuration

malik8515 wrote on Sunday, January 29, 2012:

I will try to contact the hosting company and see it they can help.  oh and i am using the self signed SSL, i don’t think that should make any different. 
Gutiersa, with http:// everything works perfectly including x12 file generation.  When I try it with https:  I do get a batch.txt file but with following content:

<br />
<b>Warning</b>:  fopen(/home/mydirectory/public_html/emr/openemr-4.1.0/library/freeb/process_bills.log) : failed to open stream: Permission denied in <b>/home/mydirectory/public_html/emr/openemr-4.1.0/interface/billing/billing_process.php</b> on line <b>122</b><br />
<br />
<b>Warning</b>:  fwrite(): supplied argument is not a valid stream resource in <b>/home/mydirectory/public_html/emr/openemr-4.1.0/interface/billing/billing_process.php</b> on line <b>196</b><br />
<br />
<b>Warning</b>:  fclose(): supplied argument is not a valid stream resource in <b>/home/mydirectory/public_html/emr/openemr-4.1.0/interface/billing/billing_process.php</b> on line <b>241</b><br />
ISA*00*          *00*          *ZZ*AV09311993     *01*030240928      *120128*2248*^*00501*022130148………deleted by me………….NM1*40*2*AVAILITY**

thanks

gutiersa wrote on Monday, January 30, 2012:

Looks as if you were using two different server configuration files.
The ssl part of it is telling server to display errors.
The display_errors directive in Apache must be set to off. Usually is on for testing/troubleshooting purposes.
At any rate those warnings should not be affecting the generated x12 file. (I believe!)
I am not sure why they are getting printed into the file.
Are these warnings also showing up on the screen?

gutiersa wrote on Monday, January 30, 2012:

How is it that you enable/disable ssl with your type of setup?

gutiersa wrote on Tuesday, January 31, 2012:

Re:

ISA*00* *00* *ZZ*AV09311993 *01*030240928 *120128*2248*^*00501*022130148………deleted by me………….NM1*40*2*AVAILITY**

hard for me to figure it out. I am assuming ^ is your end of segment delimiter? There is still another delimiter that does not show in the line. Also there is no production or test indicator. I know officeally and medicare require it (when you submit directly to medicare intermediary in my area via modem). Don’t really know about Availity. (should be standard. Also can’t tell the spacing. Can you re post your first line? replace each space with hyphen so I can count the spaces.

malik8515 wrote on Friday, February 03, 2012:

I am still having the same problem and the hosting company things it is related with the hosted program.  the problem is not with the kind of x12 files generated.  For some reason when i use https:// the access to certain files is denied.  like the pic folder, and the process_bills.log file.  I have changed the permissions to these files and the pic folder to 777 but I still have the same issue. 
Thanks

gutiersa wrote on Saturday, February 04, 2012:

You gotta look at your log files, server and ssl