-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Hello,
I’ve been trying for several days to install LimeSurvey on my WD MyCloud PR4100, but despite multiple attempts, the installation never completes successfully.
I’ve tested two different approaches: one without Docker, and one with Docker.
First, I tried installing LimeSurvey directly on the NAS, using the built-in PHP and Apache environment.
I connected via SSH, downloaded LimeSurvey into the web directory, and attempted to enable the necessary PHP extensions (intl, zip, xml, etc.).
However, the WD MyCloud system (based on BusyBox) doesn’t allow installing or activating these extensions, there’s no apt or opkg, and the PHP environment provided by WD is extremely limited.
As a result, it was impossible to run LimeSurvey because several required PHP dependencies were missing.
So I switched to a Docker-based installation, which seemed more promising.
I first created a MariaDB (10.6) container with the appropriate environment variables. The database starts correctly, the users are visible, and I can connect to it through docker exec without any issue.
Then, I launched the LimeSurvey container using the image martialblog/limesurvey:latest, connected to the same Docker network (limesurvey-net).
The logs show that LimeSurvey successfully connects to MariaDB, but the installation always stops at the same point with the following errors:
“DataBase version are not found, seems LimeSurvey are not installed.”
“Invalid access data. Check your config.php db access data.”
I’ve tried everything: recreating the database, granting all privileges to limesurvey_user, manually editing config.php, changing the MariaDB version (10.5, 10.6, 11), deleting and recreating the volumes, and restarting the containers cleanly.
Each time, LimeSurvey detects the database but fails to initialize the tables and keeps reporting that LimeSurvey is not installed.
Some additional info:
NAS: WD MyCloud PR4100
Firmware: My Cloud OS 5 (v5.27.xx)
Docker: enabled through the WD Dashboard
Images used: mariadb:10.6 and martialblog/limesurvey:latest
If anyone has managed to get LimeSurvey running on a WD MyCloud PR4100, or has encountered the same “database not initialized” issue, I’d really appreciate your feedback or a working configuration example.
Thanks a lot in advance for your help!
Pierre
Command used to run LimeSurvey :
docker run -d
--name limesurvey
--network limesurvey-net
-e DB_TYPE=mysqli
-e DB_HOST=ls-mariadb
-e DB_PORT=3306
-e DB_NAME=limesurvey
-e DB_USER=limesurvey_user
-e DB_PASSWORD=examplepass
-e ADMIN_USER=admin
-e ADMIN_PASSWORD=ChangeMe123!
-e ADMIN_NAME="Pierre"
-e ADMIN_EMAIL="admin@example.com"
-p 8080:80
--restart unless-stopped
martialblog/limesurvey:latest
MariaDB container:
docker run -d
--name ls-mariadb
--network limesurvey-net
-e MARIADB_ROOT_PASSWORD=exampleRoot123
-e MARIADB_DATABASE=limesurvey
-e MARIADB_USER=limesurvey_user
-e MARIADB_PASSWORD=survey123
-v /shares/limesurvey_docker/db:/var/lib/mysql
--restart unless-stopped
mariadb:10.6
--character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
Logs from the LimeSurvey container:
CException: DataBase version are not found, seems LimeSurvey are not installed.
CException: Invalid access data. Check your config.php db access data in /var/www/html/application/commands/InstallCommand.php:115
Stack trace:
#0 /var/www/html/application/commands/InstallCommand.php(50): InstallCommand->createDatabase()
#1 /var/www/html/vendor/yiisoft/yii/framework/console/CConsoleCommandRunner.php(71): InstallCommand->run()
Database connection check:
docker exec -it ls-mariadb mysql -u root -p -e "SHOW DATABASES;"
Output:
+--------------------+
| Database |
+--------------------+
| information_schema |
| limesurvey |
| mysql |
| performance_schema |
| sys |
+--------------------+