OpenEMR Setup problems

suavelogica wrote on Tuesday, August 12, 2014:

Hello, I am installing OpenEMR 4.1.2 on a CentOS 5.1 virtual private server. I have the MySQL database setup and openemr user created. When I go through the installation I get to Step 3 and receive the following message:

OpenEMR Setup

Step 3

Configuring OpenEMR…

Connecting to MySQL Server… OK.
ERROR. Could not open dumpfile ‘/home/p7000113/public_html/openemr-4.1.2/library/classes/…/…/sql/database.sql’.

Any ideas what could be causing this error?

Thanks for your help!

fsgl wrote on Tuesday, August 12, 2014:

Have you tried allowing the setup to complete and then restoring the dumpfile via the command line (which will also drop the tables as part of the recovery)?

It’s my understanding that the database has to be created first by the setup.

suavelogica wrote on Tuesday, August 12, 2014:

Thanks for your attention on this issue. No, I cannot move beyond this point. I even went into the phpmyadmin and imported the database.sql file, but this did not help the problem at all. The VPS company is telling me it is a problem with the application, but I suspect it is more likely their setup. I cannot even get Virtualmin to install on that VPS…

fsgl wrote on Tuesday, August 12, 2014:

Folks installing elsewhere besides a local machine have more difficulties. It may be something simple that the VPS company has to turn on or off for you and over which you have no control.

The dumpfile error message is mudding the waters. What is the error message in step 3 without the .sql file import? As you can see from the screenshot, there are at least 10 areas, any one of which can be the source of the problem.

suavelogica wrote on Tuesday, August 12, 2014:

The error is posted exactly as I received it above. It seems to fail when creating the database tables.

fsgl wrote on Tuesday, August 12, 2014:

What happens after deleting the database created with the .sql import?

suavelogica wrote on Tuesday, August 12, 2014:

I get the following message after deleting the database:

Step 3

Configuring OpenEMR…

Connecting to MySQL Server… ERROR. Check your login credentials. unable to select database: ‘p7000113_openemr’

suavelogica wrote on Tuesday, August 12, 2014:

So after deleting the database, I went back through the install and chose the option for the install to create the database. When I submit the form for step 2 I get the following:

OpenEMR Setup

Step 3

Configuring OpenEMR…

Connecting to MySQL Server… ERROR. Check your login credentials. unable to connect to database as root

suavelogica wrote on Tuesday, August 12, 2014:

A little further now! So I deleted the database again and created an empty container with the appropriate user account. I updated sqlconf.php to config=0 and reran the install. This time I got to step 4 but with this error

OpenEMR Setup

Step 4

Installing and Configuring Access Controls (php-GACL)…

Configuration:
driver = mysql,
host = localhost:3306,
user = p7000113_openemr,
database = p7000113_openemr,
table prefix = gacl_Testing database connection…
Failed! ERROR connecting to database,
are you sure you specified the proper host, user name, password, and database in admin/gacl_admin.inc.php?
Did you create the database, and give read/write permissions to “p7000113_openemr” already?

Any recommendations on how to proceed from here?

suavelogica wrote on Tuesday, August 12, 2014:

Is it possible to manually configure the rest of the installation?

yehster wrote on Tuesday, August 12, 2014:

Step 4 calls these two files through the installer class.

gacl/setup.php
acl_setup.php

You could try accessing those files directly to attempt manual setup.

However, I’m not sure I’d trust an install that required such an intervention. You would be doing something I doubt anyone has much experience with.

fsgl wrote on Tuesday, August 12, 2014:

It continues to be a credentials problem. It is highly unlikely that the MySQL root password, just supplied in Step 2, would be incorrect.

These are the credentials required by the setup for successful completion. Changing sqlconf.php appears not to be an acceptable workaround because these credentials are configured and determined by the setup during the creation of a new database.

Would be better to do a proper install because problems may linger with MySQL.

A Google search of Step 3 stalls yielded 5-6 hits with no real answers. The only thread remotely close to your situation is this but it was about an OSX device.

Try asking help from the VPS company again. You may get lucky in reaching someone who actually is interested in customer service. The best guess is that something on their end is blocking the install.

Another option to consider, if a change of the operating system is not too great an onus or if it’s feasible, is this package.

suavelogica wrote on Wednesday, August 13, 2014:

Thanks so much for the investigation help and suggestion. I am exploring other VPS companies and will also ask about getting a VPS with Debian on it from the guys I’m with now.

fsgl wrote on Wednesday, August 13, 2014:

Glad to be of a little help.

Let us know how you fared. Step 3 is a very common stumbling block. At present there is a paucity of answers, so if you get to the bottom of this, it will help other forum members.

Good luck.

cravaus wrote on Wednesday, August 13, 2014:

For me, this was a password issue. I was mixing up my root vs openemr vs my login passwords. Once I had them straight, the installation moved past 4.