On my latest attempt, I was unable to initialize the MariaDB. I have tried removing the packages the article instructs to install, in order to start afresh when I go wrong, but there may still be some components or changed permissions that conflict:
[manupc@manupc-2 ~]$ sudo mariadb-install-db --user=/mysql --basedir=/usr --datadir=/var/lib/mysql
chown: invalid user: ‘/mysql’
Cannot change ownership of the database directories to the '/mysql'
user. Check that you have the necessary permissions and try again.
I was reluctant to remove mysql ( I would go sudo pacman -S mysql) in case mysql is used for other things in manjaro.
Please can someone assist me in installing Moodle on my PC?
I think you would probably be easiest off just installing it from the AUR. It should pull in the needed dependencies and set up the basic configuration.
pamac build moodle
Usernames may not start with a slash. The correct username would be mysql. But see my comment above.
When I build with pamac or sudo pacman -S moodle, I can’t find the package on my start menu under All Applications. The article suggests I need to set up Maria Database and PHP.
I think if I have to enable a web server, it may be more complex and time-consuming than I’d imagined. Perhaps it isn’t worth it right now just to explore it at a basic level.
Note that XAMPP is generally considered one of the most user friendly methods to setup a local web server; including Apache, PHP, MariaDB, etc.
As @Aragorn suggests, once you have a working web server, you can begin to focus on ways you can use it; easily create basic websites locally; install wordpress or other CMS systems; and yes, even install Moodle (which I vaguely recall playing with some thrirty years ago when it was new).
Well, I’m afraid I can’t be of more help here. I don’t use either of those software titles, and the AUR isn’t even officially supported in Manjaro — nor in Arch proper, for that matter — because its content is uploaded by regular users, not by any distro developers. So there is no guarantee that it’ll work, or — worst case scenario — that it won’t even be anything malicious.
Software on the AUR — actually, they are not software packages but build scripts that pull in the software (usually as source code) from elsewhere — regularly gets flagged out-of-date. Somebody decides to upload a build script to the AUR, but then they lose interest and nobody takes over, leading to what we call abandonware.
Perhaps someone with more knowledge of, or experience with these packages can offer you more help, but I’m afraid I myself cannot do anything more at this point.