Openemr 3.0 installation

sraj49 wrote on Thursday, March 05, 2009:

I had followed every step as per the manual and in step 4 I get a message as below;

OpenEMR Setup

Step 4

Installing and Configuring Access Controls (php-GACL)…

Writing php-GACL configuration settings to config files…
Finished writing php-GACL configuration settings to config files.

Configuration:
driver = mysql,
host = localhost,
user = mytwirle_sraj49,
database = mytwirle_mbs3,
table prefix = gacl_Testing database connection…
Success! Connected to "mysql" database on "localhost".
Testing database type…
Success! Compatible database type "mysql" detected!
Making sure database "mytwirle_mbs3" exists…
Success! Good, database "mytwirle_mbs3" already exists!
Failed! Failed creating tables. Please enable DEBUG mode (set it to TRUE in $gacl_options near top of admin/gacl_admin.inc.php) to see the error and try again. You will most likely need to delete any tables already created.
Failed! Please fix the above errors and try again.

OpenEMR ACL Setup
All done configuring and installing access controls (php-GACL)!
Gave the ‘admin’ user (password is ‘pass’) administrator access.

Done installing and configuring access controls (php-GACL). Click ‘continue’ to see further instructions.

Can someone help me in the next steps…

Thanks

bradymiller wrote on Thursday, March 05, 2009:

hey,

Couple questions.:
Is your OS linux or windows?
What’s the file name of the OpenEMR that your downloaded (there have been several pre-releases) and what day did you download it? Or are you using most recent CVS version?
What’s your php and mysql version?
In step 1, did you “Have setup create the database”?

Judging from the last line of output, your likely not using the most current CVS version:
should end with:
Done installing and configuring access controls (php-GACL).
Next step will configure PHP.

and not:
Done installing and configuring access controls (php-GACL). Click ‘continue’ to see further instructions.

-brady

sraj49 wrote on Thursday, March 05, 2009:

Thanks Brady,

1 OS is Linux Susie

2 openemr-3.0.rc1.tar.bz2

3 PHP 5 / 4 and MySql 5 and My Sql 4 - support

4 In Step 1 I clicked on already have created data base. This is because I am on a shared server hosted by siteground ( Secure).

I await your response and I appreciate your kind assistance.

Have a great evening

Raj

bradymiller wrote on Thursday, March 05, 2009:

hey,

one more simple question. what manual are you using?
I’m gonna assume this one:
http://www.oemr.org/modules/wiwimod/index.php?page=LinuxGenericOpenEmrInstall

1) Are you logging your php errors.; this is extremely useful.  This is configured in the php.ini file on your server.  Don’t use ‘display_errors’, it sucks and causes some errors in openemr.  You should turn on ‘log_errors’ and can then select a file at ‘error_log’ (default usually goes to your syslog)

2) I’m assuming you just created a empty database mytwirle_mbs3.  Do you have mysqladmin on the server.  If so, it would be interesting to see if you have any tables in your mytwirle_mbs3 database after your attempted installation.  If so, are there any with the gacl_ prefix?(I’m guessing there aren’t).

3)Have you edited the openemr/gacl/gacl.ini.php or openemr/gacl/gacl.class.php files directly (you shouldn’t have)

Without any of the above info, I’m blindly guessing this is a mysql permission problem (error log should help us out here).  It would be very strange if step 3 (openemr mysql stuff) worked fine, but step 4 (phpgacl mysql stuff) didn’t since they are both using same mysql login information.

-brady

bradymiller wrote on Thursday, March 05, 2009:

Another thing I forgot to mention is that your not using the most current development version.  If you know how to use CVS, that’s the best way to get most recent development version.  I’ll see if we can get a more recent linux development version posted on oemr.org .

drbowen wrote on Thursday, March 05, 2009:

I have posted release candidates rc1 for both Unix / Linux and Windows at oemr.org:

Current Release 03-05-2009 (Unix/Linux): openemr-3.0-rc1.tar.bz2
http://www.oemr.org/files/openemr-3.0-rc1.tar.bz2

Most Recent Release 3-4-2009 (Windows): openemr-3.0-rc1.zip
http://www.oemr.org/files/openemr-3.0-rc1.zip

Sam Bowen, MD

sraj49 wrote on Thursday, March 05, 2009:

Hi Brady, good morning.

1 I enabled the debug and I got to knowthe issues - all with table creation.

2 Yes, I created an empty data base. 100 tables were created in the data base. From the error log lots of coorrection had to be made and I had to crate three more tables making the totla 1003 tables. One of the issue was related to the variable characters if there are more than one with length 240 I was not able to create an index unless I reduce one field length to 90.

3 I have not deited openemr/gacl.ini.php or gacl/gacl.class.php.

4 I do not know how to use CVS but I am sure I can do that if you can gide me.

5 Now I am able to log in. On the left side i have two rows of radio buttons for navigation. Unfortunately it is hideen starting from patient until charges- bot the text and the butoons are not clickable and hidden. Starting from Calendar to Auth/notes i can click. But I am not able to make any entry in the calendar.

I hope these details spark off some solutions that can help me.

Thanks

Raj

sraj49 wrote on Thursday, March 05, 2009:

Brady, further if I can have your email id I can send you the screen shots which would be probably easier for you.

Raj
sraj1949@comcast.net

sraj49 wrote on Thursday, March 05, 2009:

Dr.Brady,

I was looking at the demo of cvs version. What I find missing on my screen is the new patient button. Is some file missing in the download or is it not uploaded properly by me… Whihc file creates this New Ptient link?

Thanks

Raj

sraj49 wrote on Thursday, March 05, 2009:

Brady,

I compared the 3.0r1 demo on ine and my program. I mentioned to thhat the new patient radio button is no there. I notice the following are not there.

1 Admin
2 New Pt
3 Issues

The above three buttons are missing. For adding calener entry the pop up comes but I am not able to fill in since no patient is availbale in the data base…

I am sure may be missing some files…The patient_data tabel is there in the data base…

I have checked the Php settings through siteground and I also took a printout. Seems OK to me.

Raj

sraj49 wrote on Thursday, March 05, 2009:

Brady,

I am sorry I am updating you in installments. One more button missing in Vavigation is Billing in addition to Admin, New Pt and Issues

Raj

anojgoel wrote on Thursday, March 05, 2009:

not sure if it would help and as well not sure if it can be done–

i would install it all on one machine.

than backup/migrate the database to another server and change config files to point to remote server.

anoj

bradymiller wrote on Thursday, March 05, 2009:

> 2 Yes, I created an empty data base. 100 tables were created in
> the data base. From the error log lots of coorrection had to be
> made and I had to crate three more tables making the totla 1003
> tables. One of the issue was related to the variable characters if
> there are more than one with length 240 I was not able to create
> an index unless I reduce one field length to 90.

That is concerning. You should get thru mysql stuff with no errors, and you definitely should not be having to create and correct tables.  Sounds like your mysql openemr database is screwed up, which will cause bunch of issues I’m guessing.  I’d completely re-install (to remove openemr, just drop your table(mytwirle_mbs3) and delete the openemr directory).  Then try it again, and paste the error log file here.  Also, try to get the exact mysql version your using.

-brady

drbowen wrote on Thursday, March 05, 2009:

Dear Raj,

What is the date of the file that you downloaded?

There have been several fixes in the last few days.

Sam Bowen, MD

sraj49 wrote on Thursday, March 05, 2009:

Dear Sam,

Current Release 03-05-2009 (Unix/Linux): openemr-3.0-rc1.tar.bz2

I downloaded this throeugh oemr.org site. COmparing with Demo I see all radi buttons except Admin, Billing & Issues. Buttons from auth/notes downwards are not clickable. YOu can log on to this temporary site and use admin and pass to ente and you will see.

www.mytwirless.com/transaction2

Thanks

Raj

sraj49 wrote on Friday, March 06, 2009:

Brad,

I did what you suggested. I deleted the data base, created a new one…openemr to keep it simple…downloaded the files again 3.01rc. It went celan unitl step 4 and then this is what I get. The server is on PHP 5.2 and supports both MySql 4 and 5.

OpenEMR Setup

Step 4

Installing and Configuring Access Controls (php-GACL)…

Writing php-GACL configuration settings to config files…
Finished writing php-GACL configuration settings to config files.

Configuration:
driver = mysql,
host = localhost,
user = mytwirle_sraj49,
database = mytwirle_openemr,
table prefix = gacl_Testing database connection…
Success! Connected to "mysql" database on "localhost".
Testing database type…
Success! Compatible database type "mysql" detected!
Making sure database "mytwirle_openemr" exists…
Success! Good, database "mytwirle_openemr" already exists!
Failed! Failed creating tables. Please enable DEBUG mode (set it to TRUE in $gacl_options near top of admin/gacl_admin.inc.php) to see the error and try again. You will most likely need to delete any tables already created.
Failed! Please fix the above errors and try again.

OpenEMR ACL Setup
All done configuring and installing access controls (php-GACL)!
Gave the ‘admin’ user (password is ‘pass’) administrator access.

Done installing and configuring access controls (php-GACL).
Next step will configure PHP.

I went in to the file gacl/admin/gacl_admin.inc.php. But I am not able to find whee I have to enable the dubug mode. I dont see any statement for Debig there.

Is it some other file? I see the file gacl/gacl.ini.php has a Debug statement as False and should I change that to TRUE. I am not able to find a debug statement in the file indicated in step 4.

Raj

bradymiller wrote on Friday, March 06, 2009:

hey,

Should be fine turning on debug in gacl/gacl.ini.php, but the real money is probably going to be in your PHP log file is; once you get that paste it here.  The php log file is set in the php.ini file.  In the php.ini file ensure ‘display_errors’ is OFF and ensure ‘log_errors’ is turned ON.  You can also specify a log file in php.ini at ‘error_log’ (default usually goes to your syslog).

Are your PHP and mysql on separate servers?  It would be helpful to know you exact mysql version you’ve got.

-brady

sraj49 wrote on Friday, March 06, 2009:

The php error log is as below.

[05-Mar-2009 23:06:47] PHP Fatal error:  require_once() [<a href=‘function.require’>function.require</a>]: Failed opening required ‘/Smarty.class.php’ (include_path=’.:/usr/local/php52/pear’) in /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php on line 62
[05-Mar-2009 23:13:11] PHP Fatal error:  require_once() [<a href=‘function.require’>function.require</a>]: Failed opening required ‘/Smarty.class.php’ (include_path=’.:/usr/local/php52/pear’) in /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php on line 65
[05-Mar-2009 23:28:32] PHP Parse error:  syntax error, unexpected T_ELSE in /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php on line 51
[05-Mar-2009 23:41:17] PHP Fatal error:  require_once() [<a href=‘function.require’>function.require</a>]: Failed opening required ‘/Smarty.class.php’ (include_path=’.:/usr/local/php52/pear’) in /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php on line 79
[05-Mar-2009 23:46:38] PHP Fatal error:  require_once() [<a href=‘function.require’>function.require</a>]: Failed opening required ‘/Smarty.class.php’ (include_path=’.:/usr/local/php52/pear’) in /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php on line 81

Details of MySql:

MySQL Support    enabled
Active Persistent Links    0
Active Links    0
Client API version    5.0.45
MYSQL_MODULE_TYPE    external
MYSQL_SOCKET    /var/lib/mysql/mysql.sock
MYSQL_INCLUDE    -I/usr/include/mysql
MYSQL_LIBS    -L/usr/lib -lmysqlclient

php Version 5.x

DOes this help?

I really appreciate your taking time and trying to help out.

Have a great day

Raj

sraj49 wrote on Friday, March 06, 2009:

Dear Brady,

Subsequent to the Php error log I sent you, I was checking the code at /home/mytwirle/public_html/openemr/gacl/admin/gacl_admin.inc.php  and checking the code it is showing error at the following place:

if ( file_exists($config_file) ) {
$config = parse_ini_file($config_file);

if ( is_array($config) ) {
if ( isset($gacl_options) ) {
$gacl_options = array_merge($config, $gacl_options);
} else {
$gacl_options = $config;

}

}
unset($config);
}

I am not a professional coder.

Raj

bradymiller wrote on Friday, March 06, 2009:

hey,

Paste the php error log from your installation (basically entire log during steps 1-4).

-Brady