Install on Windows Vista > HTTP 500 &

aballentine wrote on Wednesday, October 05, 2011:

I have completed an installation of OpenEMR 4.1 on Windows Vista (with Apache 2.2, PHP 5.3.8, & MySQL 5.5), and am unable to get anything to run other than the display of the openemr directory contents.  When I click on the displayed ‘login.php’ link, the browser goes to a blank screen.  On examining the Apache error and access logs, all I find is an HTTP 500 and 353 error logged on the attempt to access login.php.  I have no idea what 353 is, but of course 500 basically means an internal server error that Apache (or other HTTP server) cannot identify.

I have made all of the recommended “tuning” changes to PHP (http://www.oemr.org/wiki/FAQ#What_are_the_correct_PHP_settings_.28can_be_found_in_the_php.ini_file.29_.3F) and mySQL (“STRICT_MODE” disabled).  I have done a complete uninstall of Apache, PHP, & OpenEMR, and reinstalled them in a flatter file structure (i.e., not in /Program Files).  I already have other development efforts started on the existing mySQL instance, so did not touch that.  For the same reason, I didn’t want to use the XAMPP package.

Can someone give me insight on what might be failing?  I have a feeling it has to do with a hard or relative path problem somewhere, or maybe even security/access to said path, but have nothing to base this on other than intuition based on experience.

Thanks in Advance,
Alan Ballentine

bradymiller wrote on Thursday, October 06, 2011:

Hi,
Also, ensure you don’t have IIS running. Do you see the apache http page when you go to the root web directory via browser?
-brady

aballentine wrote on Thursday, October 06, 2011:

Thanks, Brady.  Yup - I have IIS shutdown and disabled.  URL to ‘localhost’ displays the Apache “It Works!” page.  I also dropped a simple ‘Hello World’-type PHP file in the Apache root to make sure PHP was functional, and it works as well.

Alan

bradymiller wrote on Friday, October 07, 2011:

Hi,

Anything in the php error logs?
(another option is to try out the xampp package, but only use the apache server and php part (ie. do not turn on the mysql part:
http://open-emr.org/wiki/index.php/OpenEMR_4.1_XAMPP_Package_Installation
)

-brady

aballentine wrote on Saturday, October 08, 2011:

I found the following in the PHP logs:

PHP Warning:  include_once(…/globals.php): failed to open stream: No such file or directory in G:\Apache2.2\htdocs\openemr\login.php on line 4
PHP Warning:  include_once(): Failed opening ‘…/globals.php’ for inclusion (include_path=’.;C:\php\pear’) in G:\Apache2.2\htdocs\openemr\login.php on line 4
PHP Warning:  include_once(/sha1.js): failed to open stream: No such file or directory in G:\Apache2.2\htdocs\openemr\login.php on line 6
PHP Warning:  include_once(): Failed opening ‘/sha1.js’ for inclusion (include_path=’.;C:\php\pear’) in G:\Apache2.2\htdocs\openemr\login.php on line 6
PHP Warning:  include_once(/sql.inc): failed to open stream: No such file or directory in G:\Apache2.2\htdocs\openemr\login.php on line 7
PHP Warning:  include_once(): Failed opening ‘/sql.inc’ for inclusion (include_path=’.;C:\php\pear’) in G:\Apache2.2\htdocs\openemr\login.php on line 7
PHP Fatal error:  Call to undefined function sqlStatement() in G:\Apache2.2\htdocs\openemr\login.php on line 23

It seems that the relative paths to various resources are not being resolved, or that one of the document root settings somewhere along the way is wrong.  Just to confirm, I changed the top of the login.php file as follows to point to the absolute path to globals.php.  The login page did display, but as expected, nothing beyond that worked as the relative paths are all “jazzed”:

<?php
$ignoreAuth=true;
//include_once("…/globals.php");
include_once(“g:/apache2.2/htdocs/openemr/interface/globals.php”);
include_once("$srcdir/sha1.js");
include_once("$srcdir/sql.inc");
?>

I also noticed that one function was trying to make a call to “C:\php\pear” - that’s also an issue since I have PHP installed on my G: drive.  So with all that, I have 2 issues at present:

1. What might be causing the problem with finding paths and resources on those paths?
2. Where is the include_path for pear set?

Thanks,
Alan Ballentine

bradymiller wrote on Saturday, October 08, 2011:

Hi,

Sounds like a php or apache issue(did some online seaching of ‘broken relative php paths’ and couldn’t find an obvious answer. Just to sort it out as a testing step, try the following:
1. install XAMPP version 1.7.3(just use the zip package to avoid messing with your windows registry) and only run the apache part via ‘xampp-control’ (don’t use mysql since you are already using your own instance of mysql)
2. install OpenEMR 4.1 from the windows zip package into xampp htdocs directory:
http://open-emr.org/wiki/index.php/OpenEMR_4.1_Windows_Installation

Does this work?

-brady