404 error /var/www/openemr/interface/main/tabs/main.php

Hello, I have installed Open EMR for the first time on a local Ubuntu 16.04 instance. I am able to see the first log in screen, I enter username of admin, password of pass, hit login, and I get a 404 not found error.

The requested URL /var/www/openemr/interface/main/tabs/main.php was not found on this server.

When I check the log file, I see:
“GET /var/www/openemr/interface/main/tabs/main.php HTTP/1.1” 404 533 “http://localhost/openemr/interface/login/login.php?site=default

However, when I look in the web server directory /var/www/openemr/interface/main/tabs/main.php is there.

Anyone have any ideas as to what could be going on?

Thank you!!!

If you have changed between tabs and frames, you’ll need to relogin.

Not sure if that’s your issue though, just a good first step!

-m

Hi @bfinn1,

Could you share the error log, which will be helpful to debug the issue.

Thanks,
ViSolve

Sure!

Here are the error logs that I am aware of. Please tell me which one you want to see, or if there is another log that I have not listed let me know.

OpenEMR Install Log
Apache2 Error Log
Apache2 Error Log.1
Apache2 Access Log
Apache2 Access Log.1
Apache2 other_vhosts_access.log

MySql Error Log

Thank you!!

apache error log, /var/log/apache2/error.log

Here is what’s in the /var/log/apace2/error.log. Doesn’t seem to say anything interesting. I checked it before, reproduced the error, and checked it again and it hadn’t changed.
[Sat Feb 17 07:04:02.970997 2018] [mpm_prefork:notice] [pid 1283] AH00163: Apache/2.4.18 (Ubuntu) configured – resuming normal operations
[Sat Feb 17 07:04:02.971027 2018] [core:notice] [pid 1283] AH00094: Command line: ‘/usr/sbin/apache2’

I’m noticing in the /var/log/apache2/access.log, I seem to get a log of 404 error, such as this:

::1 - - [17/Feb/2018:08:15:58 -0800] “GET /favicon.ico HTTP/1.1” 404 500 “http://localhost/var/www/openemr/interface/main/tabs/main.php” “Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.167 Safari/537.36”

Could this be a permissions issue?

I got it working, my apache document root folder got deleted somehow. Thanks everyone!

1 Like