Help - install not functioning properly

jenjhall wrote on Monday, April 18, 2011:

Is it a typo where you get the 404 Not Found error at the point where /openemr/ no longer is before /interface/ in the path?

jenjhall wrote on Tuesday, April 19, 2011:

Pardon the brain dead comment above.  I should never write in a public forum when I am very much in a hurry to go somewhere.  That being said, the first time I downloaded 4.0.0.01 I used aptget.  I was able to install the package but was then told that I had a “broken” package.  This did not clear until I stopped using aptget and installed using the openemr_4.0.0.01_all.deb package one click call to download and the installer.  I was wondering which method of receiving your openemr package you were using since this did produce very different results for me and I am able to run it on an offsite server in the second instance.  If you did get your package through aptget I am willing to once again load openemr through that means and see if I come up with the same problem if that would be helpful.

samsalas wrote on Friday, April 22, 2011:

I used the 4.0.0.tar.gz in files /openemr currrent/4.0.0.   I uploaded it to my server and ran the ungzip script (tar -pxvzf openemr-4.0.0.tar.gz).    Where should I go to upload the proper version?

jenjhall wrote on Friday, April 22, 2011:

The way I am understanding your problem is that you are installing openemr on a different computer than the server that it will reside on and then attempting to install it onto that server by uploading the openemr directory.  Am I correct?

samsalas wrote on Friday, April 22, 2011:

No. I uploaded openemr-4.0.0.tar.gz to the server unziped it, moved it to a folder called openemr and then ran the install.    Since I had to create the mysql data base before running the install I used the already have a database installed option during setup.   Setup seems to run fine.  The database seems to have been built correctly. All tables are visible on MySQL.

jenjhall wrote on Friday, April 22, 2011:

Did all of the setup.php script execute as per the wiki?  I hope I am not being insulting.

http://www.openmedsoftware.org/wiki/OpenEMR_4.0_Linux_Installation

Which version of Linux runs your webserver?

jenjhall wrote on Saturday, April 23, 2011:

Also since you have tried to install this a number of times one more attempt with the option of having openemr create the database might help.

samsalas wrote on Wednesday, April 27, 2011:

The root directory was not set properly.  I had to hard code it within interface/globals.php.

// The webserver_root and web_root are now automatically collected in
//  real time per above code. If above is not working, can uncomment and
//  set manually here:
//   $webserver_root = “/var/www/openemr”
//   $web_root =  “/openemr”
//

one note to anyone who needs to hard code the root path.  If you look at the directions it tells you to uncomment and set manually.  BE SURE TO USE a semicolon at the end of each line.  I to me weeks of going through the code to realize the statements were not ended properly.  Oh and comment out the prior code. 

Thank to everyone for all your help.

samsalas wrote on Wednesday, April 27, 2011:

$webserver_root = “/var/www/openemr”;
$web_root =  “/openemr”;

bradymiller wrote on Wednesday, April 27, 2011:

samsalas,

I committed your suggestion to the codebase, so version 4.1.0 will have semicolons at the end. The fact that you need to hard-code this is very unusual and is a bug. To help us debug this issue, doing the following would be very helpful:
Uncomment the previous code (note this will cause no issues since your hard-coded values will overwrite them), and then insert the following into the globals.php file below the previous code, but above your hard-coded settings:

error_log("WEBSERVER_ROOT: ".$webserver_root,0);
error_log("WEB_ROOT: ".$web_root,0);

So, it should look like this:

//
// The webserver_root and web_root are now automatically collected.
// If not working, can set manually below.
// Auto collect the full absolute directory path for openemr.
$webserver_root = dirname(dirname(__FILE__));
if (IS_WINDOWS) {
 //convert windows path separators
 $webserver_root = str_replace("\\","/",$webserver_root); 
}
// Auto collect the relative html path, i.e. what you would type into the web
// browser after the server address to get to OpenEMR.
$web_root = substr($webserver_root, strlen($_SERVER['DOCUMENT_ROOT']));
// Ensure web_root starts with a path separator
if (preg_match("/^[^\/]/",$web_root)) {
 $web_root = "/".$web_root;
}
error_log("WEBSERVER_ROOT: ".$webserver_root,0);
error_log("WEB_ROOT: ".$web_root,0);
// The webserver_root and web_root are now automatically collected in
//  real time per above code. If above is not working, can uncomment and
//  set manually here:
$webserver_root = "/var/www/openemr";
$web_root =  "/openemr";
//

This will then output the auto-calculated webserver_root and web_root into the php log file. Would be very useful for you tho then paste that here.

thanks,
-brady