Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No matching DirectoryIndex forbidden #154

Open
jpaulino04 opened this issue Feb 19, 2019 · 9 comments
Open

No matching DirectoryIndex forbidden #154

jpaulino04 opened this issue Feb 19, 2019 · 9 comments

Comments

@jpaulino04
Copy link

Hello,

I am unable to get the application started.

Apparently the index file can not be found Cannot serve directory /home/pophealth/popHealth/public/: No matching DirectoryIndex.

By the way, I do not see any index anywhere in the application.

Does anyone know how all works?

After install and going to the server ip I get a "403 forbidden" error.

Thanks,

@petercyli
Copy link
Collaborator

Can you let me know which version of pophealth that you trying to install?

@jpaulino04
Copy link
Author

jpaulino04 commented Feb 19, 2019

@petercyli

Thank you for replying.
I am trying to install version 5.1. following this guide:
https://github.com/OSEHRA/popHealth/wiki/Installation-v5.1

@lrasmus
Copy link

lrasmus commented Feb 19, 2019

@jpaulino04 - apologies if you have checked this, but I just want to confirm you did all of the steps to setup Apache and Passenger from the setup guide? Also, can you confirm that the path you have listed (/home/pophealth/popHealth/public) exists - I only mention this because we ran into an issue where we had "/home/popHealth" instead of "/home/pophealth".

@jpaulino04
Copy link
Author

@petercyli

Yes, the path "/home/pophealth/popHealth/public" exists but there is no index inside the public folder.

/home/pophealth is my home directory, and "popHealth" is the folder cloned from github.

Also note that I have the all validations passing:

Validating installation...

  • Checking whether this Passenger install is in PATH... ✓
  • Checking whether there are no other Passenger installations... ✓
  • Checking whether Apache is installed... ✓
  • Checking whether the Passenger module is correctly configured in Apache... ✓

Everything looks good. :-)

I am able to start apache, but I still have the forbidden error. I have tried changing the permissions and ownership, but no luck.

@lrasmus
Copy link

lrasmus commented Feb 19, 2019

Thanks for confirming all of that @jpaulino04! I don't believe you will see any index files created - the routing of that is handled magically by Passenger and Rails. Not sure if any of these considerations would apply: https://www.phusionpassenger.com/library/admin/apache/troubleshooting/ruby/#apache-reports-a-403-forbidden-error

@jpaulino04
Copy link
Author

@petercyli
Thank you for that information, I have actually already tried those steps, but Ill give it another try.

Regarding the installation guide,
I have tried following that guide, but some steps don't work and I have had to modify them.

Do you know of a different guide?

@jpaulino04
Copy link
Author

Hey, I think I got the app working, thank you for your help.

Like I mentioned that guide is outdated.

I had to install passenger using this guide, and basically do the same thing when configuring apache:
https://www.phusionpassenger.com/library/install/apache/install/oss/xenial/

Notice enabling the module, for example should be:
sudo a2enmod passenger
sudo apache2ctl restart

@lrasmus
Copy link

lrasmus commented Feb 19, 2019

Sorry to keep asking things you've already tried @jpaulino04, but thanks for the updates and the resolution! Please feel free to submit a PR for edits to the wiki pages to improve the documentation.

@jpaulino04
Copy link
Author

@lrasmus
Thank you for helping out, your comments were actually helpful.
I'll submit that PR when I have the chance.
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants