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

cloud.gov uses different keys #3

Open
cherrypj opened this issue Dec 29, 2016 · 3 comments
Open

cloud.gov uses different keys #3

cherrypj opened this issue Dec 29, 2016 · 3 comments

Comments

@cherrypj
Copy link
Contributor

Not sure if this is relevant for you.

If you install this project to a cloud.gov site (which uses Cloud Foundry), it will fail on running install.php. The reason for that is that cloud.gov has different array keys. Specifically:

  • database is $mysql_services[0]['credentials']['db_name']
  • host is $mysql_services[0]['credentials']['host']

Editing htdocs/sites/default/settings.php does the trick.

@dmikusa
Copy link
Member

dmikusa commented Dec 29, 2016

The auto detection code in settings.php isn't flawless. It will work in a lot of cases, but there will probably always be edge cases. If you have suggestions for making the code there more robust, please feel free to submit a PR.

@mvogelgesang
Copy link

@cherrypj I made the updates you suggested (huge help!) but am getting a 500 error upon submission of the site config page (admin username/ pw, e-mail). Did you run into something similar? I tried updating .htaccess, changing timeout, and increasing the memory allocation- none of which seemed to do the trick. Any help would be appreciated!

@mvogelgesang
Copy link

disregard, reinstalled from scratch and got it going. Had something off in my settings.

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