PHP problem

blankev wrote on Wednesday, December 17, 2008:

Yes I know, this is NOT the PHP Help forum.  But I will post inanyway because someone might have a quick solution.

When installing OpenEMR for the first time om an extrenal Server I get this message and can find the solution:

OpenEMR Setup

It appears that you have register_globals enabled in your php.ini configuration file. This causes unacceptable security risks. You must turn it off before continuing with installation.

======================================

Where do I find the php.ini file, or do I have to contact the Hosting Service?

I would like to continue, but can’t find the clue, everything wroks fine on mu laptop thought!

Sincerely, Pimm

blankev wrote on Thursday, December 18, 2008:

Create with your EditPad (free) or Notepad or other plain text program a file called php.ini

in php.ini create a line that says:

register_globals=off

Save this file as "php.ini" be sure it is not called php.ini.txt as Notepad might have done. Just rename it.

Put this file in the root of OpenEmr on the server. The spot where you find OpenEMR to start from.

An other way is to use ".htaccess" and ".htpassword" but that was to complicated for me for now. It seems that you can use the same line in ".htaccess" , but it did not jet work for me.

Yes it was easy, but sometimes, the obvious is hard to find…

Pimm

I encountered now the next problem. But nbeed more time to explore the orrigin. It seems as if the tables ar not made on the Server, but OpenEMR syas it did make them,but they are not seen by phpMyAdmin. So they are not made the propper way or not made.

PS. for the whol OpenEMR community: Merry Chrisstmas and a happy New Year. Although early, it seems I need more time to explore and might forget to thank you for the great work done in the past. THANKS.

drbowen wrote on Thursday, December 18, 2008:

Dear Pimm,

Which operating system are you running?

The php.ini file is part of the Apache configuration and varies in location depending on the operating system.  Some of the operating systems come with register_globals=on and some come with register_globals=off.

register_globals=on causes a lot of security problems with PHP and with OpenEMR in particular.

Sam Bowen, MD