Installation help in linux

nahoj1976 wrote on Friday, June 24, 2005:

Hi

I try my best to install open-emr but I have failed. The sql-ledger worked out fine after som tuning because of the distribution I have didn’t include DBD or DBI with postgres.

But with open-emr I am stuck.

I first tried to get freeB but couldn’t find any instructions or how-to to install it so I made trial-and-error method which so far is only error. I placed it as a directory under the browsable html-directory (root for apache-server)

Then I tried open-emr. First I got an error about one variable that should be declared different. I changed that and then I could start setup.php

Everything looks fine. I can start the login screen but then I can’t get further. It says in the documentation I should get a drop-down menu for group but noone is there. There are only name and password to fill in. When creating user in setup.php no password is choosen so I dont know what to write. Whatever I choose I can’t get further. I even opened the database through MyAdmin and checked that the user is present and it is ok.

Please help.

drbowen wrote on Friday, June 24, 2005:

Not getting a drop down menu is usually symptomatic of a missing database.

1st: What mini-howto

http://www.oemr.org/OpenEMRWiki/FreeBInstall

http://www.oemr.org/OpenEMRWiki/FreeBInstall-Improved

Inability to log in is usual one of three factors

Using the wrong password: The initial password is always "pass"

The mysql server is not running.

The database has not been created successfully.

From a command line you should be able to:

mysql -u root -p mysql

mysql> show databases;

mysql
openemr
test

mysql> \u openemr

output

mysql> show tables;

outputs a long list of tables

If you can do these two things, then you have the mysql server running and you have successfully created the database.

You have to give the "openemr" user a password.

Use the mysql root to create the database and tables.

Make yourself the initial user:

nahoj

pass

(If the the database has not been successfully created usually the initial login page will show an empty group and no login box.)

It is not necessary to cross post the same question.

Start with OpenEMR installation first. This is the easiest. (really)
Then SQL-Ledger
Then FreeB

FreeB by default should be installed at /usr/share/freeb

nahoj1976 wrote on Friday, June 24, 2005:

Thankyou for prompt help. Sorry for my double enquiry - thought I was in the wrong thread.

Now I have followed the steps in the wiki. sql-ledger workes and I can login to it. I have created a new user: openemr and a dataset openemr.

I have managed to install and start up FreeB. It is running.

When I got the information conferning password (initial: PASS) I could login and change password and add more users.

BUT:

First login screen says this:

Fatal error: Using $this when not in object context in /home/httpd/html/openemr-2.7.2/interface/main/calendar/modules/PostCalendar/pnincludes/Smarty/plugins/function.eval.php on line 23

I still can go to other pages and I can logout. But what is the problem now?

btw: I use arch.linux kernel 2.6.11 and Mozilla 1.7.5

I intend to make openemr our EMR for the practice (painclinic, endoscopy and primary health) in Sweden so I guess I will need to translate a lot and probably change some fields, add some and make some other customizations but so far the system looks good enough to be worth working with.

nahoj1976 wrote on Friday, June 24, 2005:

Some information that might help other newbies:

1. First login allways PASS as password
2. The login screen will not have the drop-down menu until one have added more than one group. When the second group is added the drop-down meny will appear.

drbowen wrote on Saturday, June 25, 2005:

Arch linux is kind of tough for a new linux user.  Ubuntu (with apt-get) will makes things a lot easier.

I’ve installed OpenEMR on Slackware, Fedora Core, Suse, and WIndows 2003 Server.  All of these installations go smoothly.

Fatal error: Using $this when not…

This sounds like a Smarty-Template error.  This is usually related to nonexistent, incorrect owner, or incorrect permissions on the following directory:

/home/httpd/html/openemr-2.7.2/interface/main/calendar/modules/PostCalendar/pntemplates/compiled

or

/home/httpd/html/openemr-2.7.2/interface/main/calendar/modules/PostCalendar/pntemplates/cache

These files need to be owned by the apache web server user and group.

You may need to set world writable permissions:

chmod 777  /home/httpd/html/openemr-2.7.2/interface/main/calendar/modules/PostCalendar/pntemplates/compiled -R

See:

http://www.oemr.org/OpenEMRWiki/Warning%3A_Smarty_error%3A_problem_creating_directory_"/%%164/%%1643473877"__

I have not tested it, but I always change the default group during setup.php to some other group. I never have to add a second group.

The first password is "pass" lower case.

nahoj1976 wrote on Sunday, June 26, 2005:

Arch might be a bit harder but I like to know what I do so…

I remembered I had changed something in the first start and now I start to wonder if that was wrong handled so I reinstalled openEMR from scratch.

When starting this comes up:
Fatal error: Class ADODB_Iterator contains 1 abstract methods and must therefore be declared abstract (Iterator::valid) in /home/httpd/html/openemr/library/adodb/adodb-iterator.inc.php on line 47

Last time I changed line 47 and added abstract first on line 47 to change declaration but maybe I should make something else?

nahoj1976 wrote on Sunday, June 26, 2005:

I’m not sure I did right…

I started to check directories and rights - nothing happened. Then I downloaded latest Smarty (2.6.8) and installed it. Instead of making new directories I copied the new files onto the old ones in …/calender/modules/PostCalender/pnincludes/Smarty
and then I again changed the declaration and now I can start it OK, the calendar shows fine. Tomorrow I will check it up further. - unless I should have done in any other way?