404 due to wrong setting somewhere

samjsharples wrote on Thursday, October 15, 2015:

Hi
I have just installed openemr but I must have a setting wrong somewhere and can’t figure out where

I get directed to this url when trying to login:
http://111.111.111.111/home/username/public_html/openemr/interface/login_screen.php

but it should be this url:
http://111.111.111.111/~username/openemr/interface/login_screen.php

Where am I going wrong?

Many thanks

fsgl wrote on Thursday, October 15, 2015:

If hosted (not localhost), IP address of host servers is required for login.

samjsharples wrote on Thursday, October 15, 2015:

sorry please could you explain more?

It is hosted on a linux server running cpanel. There is no domain attached to it yet

Thanks

growlingflea wrote on Thursday, October 15, 2015:

It looks like you are pointing to the wrong folder. Usually the public_html folder is in the www directory. I would set up a virtual host and store openEMR there. Here are easy directions to fix that.

  1. Set up a virtual host by following the directions above.
  2. Copy the files from OpenEMR into the folder that you want.
  3. You should then be able to install OpenEMR

A few things. I don’t know how familiar you are with Linux, but the ‘~’ does mean home/username. Remember that the public_html folder is usually found in the /var/www/ directory.

When you first turn on your computer and you open a terminal (CTRL + T) typing the command ‘pwd’ will give you your current location. Chances are you will see

/home/username

If you are navagating in different areas of the file hierarchy in Linux and if you want to access the /home/username directory, you can use the ‘~’ to access it. For example: ~/Documents/mydoc.doc is equal to /home/username/Documents/mydoc.doc.

fsgl wrote on Thursday, October 15, 2015:

The above link will give step-by-step instructions for installing OpenEMR in a hosted environment.

samjsharples wrote on Friday, October 16, 2015:

Sorry guys. The problem was not having a domain name attached. I have pointed the domain in my host file, re-installed and it’s working fine :slight_smile: