Welcome to the LimeSurvey Community Forum

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

Limesurvey on sub-path: No database initialization is possible?

  • Jarano_247824
  • Jarano_247824's Avatar Topic Author
  • Offline
  • Banned
  • Banned
More
3 years 6 months ago #205988 by Jarano_247824
I have the following problem:
1. I want to install limesurvey in a docker container using a sub-path in the url, like ` www.example.com/lime `. I use nginx to route limesurvey requests to this path and a MySQL docker container as database.
2. I can tell limesurvey to use this path by adding a `config.php` file to the folder `./application/config`. In this file I set the parameters `publicurl` and `baseUrl `. In this file I also need to set the `db` parameters; otherwise, Limesurvey shows an error.
3. However, when I access Limesurvey on the sub-path ` www.example.com/lime ` it shows the error that the database is not initialized. Initialization, however, only happens if no `config.php` exists in the folder `./application/config`. But I need this file to tell Limesurvey to use the path in the url: If I would remove it, limesurvey would not be accessible under ` www.example.com/lime `.

Question: How can I initialize the database while running on a subpath like ` www.example.com/lime `, or solve this problem otherwise?
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose