Error just after installation: Forbidden. You don't have permission to access /interface/login_screen.php on this server

Hi there :slight_smile:

I installed OEMR in a commercial Apache server, and all the installation process were good. All indicators were good with succes, and the php.ini seems to be cool with the requirements.

But when I try to login for the first time with the credentials delivered, the system said to me that “you don’t have permission to access /interface/login_screen.php on this server”

All the file permissions are set to 755 chmod, so i don´t get it.
Anyone have an idea what´s happening here ?

I guess this is not a “too-much-valuable-info”, but the php.log shows

“PHP Fatal error: Call to undefined function http_response_code() in /usr/home/mysite.com/web/renamedompenemrfolder/interface/main/utils/http_response_helper.php on line 38”

hi, what do you see when you navigate to localhost?

usually the default login page is http://localhost/openemr/interface/login/login.php?site=default

But…I uploaded to an existing Internet webpage server (commercial apache)…why it should work with localhost ?

When i go to /mysite.com/web/renamedompenemrfolder/interface/login/login.php?site=default

it shows the actual login page, with no problem…but when I type the credentials and press login…then the forbidden error appears

oh right, localhost doesn’t apply for you, thanks

can you view any pages under the mysite.com/web directory?

could you share the file ownership info with a ls -lrt of mysite.com?

I can view pages under the directory (html, xml, readmes, etc) with no problem

About the ownership…mmm…as I´m trying to install in a commercial web server, the ownership is automatically assigned to an user it´s not under my control, i guess

image

Still stuck here…but I´m starting to think that this is a problem with my .htaccess file

Any of you can please copy me the usual/ideal .htacces with a working copy of a OEMR in a commercial shared server ?

Thanks in advance :slight_smile:

http://www.open-emr.org/wiki/index.php/Securing_OpenEMR#Apache