Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Test copy of existing limesurvey installation on local LAMP

  • jsibley
  • jsibley's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #219897 by jsibley
Hello,
I'm thinking that it would be good to test restoring my Limesurvey (running on a private server) locally.
I'm running lando, which uses docker, and am using a LAMP recipe.
When I go to the URL for the local site, I'm getting
Code:
Internal Server Error CDbConnection failed to open the DB connection.
I'm guessing that this could be because the local database has different credentials than the database I downloaded and imported. Does that seem likely?
If so, is there somewhere I should change the local database credentials that Limesurvey is using?
Is there something else I should consider?
Many thanks!
 
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
2 years 7 months ago #219898 by tpartner
Look in /application/config/config.php.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • jsibley
  • jsibley's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #219899 by jsibley
I found documentation telling me to change the credentials in config.php (under application/config).

This gets me to my home page. However, going to the admin page gives me a blank page and doesn't display any errors.

Any ideas?

Thank you.
The topic has been locked.
  • jsibley
  • jsibley's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
2 years 7 months ago #219901 by jsibley
Yes, I needed to change the credentials in application/config/config.php to match the ones set up by lando (or I could have changed the credentials that lando set up the database with, I suppose).

Case solved, I believe.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose