Post install issue

pady wrote on Tuesday, July 21, 2009:

Newbie to openemr.

Environment: windows xp/apache 2.0/php 5/mysql 5/openemr 3.

I installed openemr in my web site. Everything went fine. But the screen after setup.php ( interface/login/login_frame.php ) could not render with an IE browser error about page not found - 404 errors. I then tried just login.php and got a login screen, which when i login as admin/pass, the left side is rendered, the bottom portion of the right side is rendered, and the top right just has some source code…

0) { return $pi[‘username’]; } return “”; } //retrieve the name based on the username function getNamefromUsername($username) { $query = “select * from users where username like ‘$username’ and username != ‘’”; $res = sqlQuery($query); return $res; } //retrieve calendar information from calendar id function getCalendarfromID ($calid) { //this table is deprecated and has been removed from new versions //return sqlQuery(“select * from calendar where id=’$calid’”); }
----
----

Any ideas ?

Thanks

pady

bradymiller wrote on Tuesday, July 21, 2009:

hey,

I’m assuming your not using the XAMPP-openemr package.

I’m guessing in your php configuration file at php.ini, that your short tags setting is turned off. This setting should be:
short_open_tag = On

I’d suggest the following settings in your php.ini file:
short_open_tag = On
max_execution_time = 60
max_input_time = 90
memory_limit = 128M
display_errors = Off
log_errors = On
register_globals = Off
post_max_size = 30M
magic_quotes_gpc = On
file_uploads = On
upload_max_filesize = 30M

-brady

pady wrote on Tuesday, July 21, 2009:

Brady,

Thanks. That helped after login. Although login_frame.php still does not show up ( 404 errors ). I am NOT using the xampp package since i had php/mysql/apache already on my system.

Thanks

pady

pady wrote on Tuesday, July 21, 2009:

Actually I typed early. The main "calendar" screen appears. But if I click on any of the radio buttons ( New Patient, Admin, Password etc ), I get a 404 error still on the main frame. I did download the 3.0.1 version from oemr.org. I assume the sourceforge.net versions are right.

Any ideas ?

bradymiller wrote on Tuesday, July 21, 2009:

hey,

I’d suggest making all above edits to your php.ini file, then restart the apache server. Is your openemr version 3.0.1 (same as 3.0.0.1), and did you follow the below instructions:
http://www.oemr.org/modules/wiwimod/index.php?page=WindowsGenericOpenEmrInstall

If still problems, then find and paste your php log file here after you see the error. The above php setting log_errors will ensure erros get logged to the error log file.

-brady

bradymiller wrote on Tuesday, July 21, 2009:

hey,
also, clear your browser cache.
-brady

pady wrote on Tuesday, July 21, 2009:

I see these errors in apache error.log…

[Tue Jul 21 16:43:44 2009] [error] [client 67.188.200.81] File does not exist: D:/Apache/Apache2/htdocs/openemr/openemr
[Tue Jul 21 16:44:13 2009] [error] [client 67.188.200.81] File does not exist: D:/Apache/Apache2/htdocs/openemr/openemr, referer: http://openemr.geazy.com/interface/login/login_frame.php

I dont have such a directory. Why is openemr looking at this location ? I am also new to php. Is there a specific location for php log file ( i couldnt find a location in php.ini ).

Thanks

pady

pady wrote on Wednesday, July 22, 2009:

I was referring to the htdocs/openemr/openemr folder not being present in my last post. I do have the htdocs/openemr folder and its subfolders ( like interface, modules, library etc ).

Thanks

pady

bradymiller wrote on Wednesday, July 22, 2009:

hey,
Go to top of openemr/interface/globals.php file.
$web_root = "/openemr";
Should be set to:

$web_root = "/";

OR

$web_root = "";

I actually forgot which one it is. try both and let us know which one worked.

-brady

pady wrote on Wednesday, July 22, 2009:

That was it. I have been trying with "/". Actually changing it to "" made everything work.

Thanks

pady