Search results: 263
thank you very much for your post!
Finally, I was able to test STACK via https://projects.gwdg.de/projects/netzwerk-mathe-digital/wiki/stack-maxima-pool-technical-details#The-goemaxima-Server
I've installed a moodle environment which is wrapped in this docker containers.
Now, i've tried to use qtype_stack but there's an issue with the configuration related to the maxima command. Maixma is located (as usual) at /usr/bin/maxima, but the health-check-script is telling me that STACK can't connect to maxima. Do I have to adapt the maxima-path due to the reason that moodle is running in a docker-container?
docker exec [CONTAINERNAME] php scripts/get_plugin_names.php
Found the solution through a survey at https://github.com/moodlehq/moodle-docker
Thank you guys!
Now, I'm understanding the issue.
I have to add the docker specific commands to my php script. i.e. If I want to list the moodledata files in the docker container I have to run from outside the container
sudo docker exec [CONTAINERNAME] /bin/sh -c "ls /var/www/moodledata"
To avoid problems with access control, you should run them as the owner of the web server process. […] In Linux distributions, the user that runs the web server is usually apache or [www-data] or httpd or something similar.
So the operating system user account (for example: www-data) must be able to access Moodledata as these are the permissions the command line PHP script will have. If the containerisation complicates that you will need to find out how to resolve this (that's not a Moodle problem). Maybe start by running sudo -u www-data ls "path to moodledata" assuming www-data is the web server user account and "path to moodledata" is the value of $CFG->dataroot. If that command cannot access the Moodledata then PHP scripts run on the command line won't be able to either.
I tried both: normal user and superuser.
I have a Moodle 3.9.2 installation in a docker container. Access via web browser works properly and everything is fine. However, when I try to run a PHP scrip via CL I get the following error:
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
That's a bit strange since access to the moodledata folder works in general (since webpage is running without an error).
So far I've tried:
-chmod -R 777 "path to moodledata"
-adding myself to the group "www-data"
Could it be possible that the error is coming since the folder "moodle" is outside the docker container (/var/docker/moodle....) an the folder moodledata is inside the container (accessible via sudo docker exec -it "nocker-name" bash)?