Moodle Installation - Database user, Database password, Database port and Unix socket ?

Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Mike Smith -
Number of replies: 6
Dear Moodle Experts,

Using this guide, I set up my Moodle instance on AWS Lightsail. However, I am encountering the below issue. I don't know Database user, Database password, Database port and Unix socket.

Where can I find them?

Please help. Thank you!

Database issue.

Question.
Average of ratings: -
In reply to Mike Smith

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Ken Task -
Picture of Particularly helpful Moodlers
Again .. I don't host with Amazon, but ....

Your screen shot shows you still have Bitnami installed.
Un-install Bitnami or you will have a mess!  I don't know how to do that myself so you are going to have to look into Bitnami docs/forums.

Moodle is a bunch of PHP code.  It's an application.   It won't install MySQL/MariaDB for you.   That's a separate install and setup before you jump into setting up apache/web service with a valid FQDN and a valid certificate for web service to run https://

Slow down!... it's true what they say 'haste makes waist'! smile   Keep diggin' for info. Another thing ... good idea, me thinks, to follow the KISS therory .. Keep It Simple S.....!

'SoS', Ken



In reply to Ken Task

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Mike Smith -
Dear Ken,

Thank you again. Not sure how the heck I got Bitnami installed again. Now this time I will start EC2 cloud service set up for Moodle installation, and yes, no Bitnami.

If I am successful in setting up Moodle on EC2 cloud tomorrow, then I will invite you for a drink.
In reply to Mike Smith

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Ken Task -
Picture of Particularly helpful Moodlers
Might be a good idea to take a break ... but remember, if your server has a public IP address and can be accessed by anyone on the internet + you haven't done the first thing one should do ... get OS updates ... let's hope, that over night, your server hasn't been hacked (already)!



'SoS', Ken
 
In reply to Mike Smith

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
https://gist.github.com/nanusdad/1bad23140e3612f3d1212df028efa5b9 looks too short for me. For example, where is the moodledata/? (It is not moodle/ the code directory.) As you've found out, there is no mention of the database. Who recommended it to you? I think the "guide" is somebody's private notes. There are plenty on MoodleDocs under Category:Installation.

I too think, you need to take a break and first formulate what you want. You seem to go everywhere, in one day you've started a number of threads ranging from Bitnami (pre-packaged) to Git (DIY). It'll be less painful for everybody, if you could tell us what you want, and then maintain a discussion thread.
In reply to Visvanath Ratnaweera

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by Ken Task -
Picture of Particularly helpful Moodlers
'Who recommended?" ...

Guess that would be me! smile    Guessed wrong ... too bad there is not a 'NOT useful' rating! :|

'no mention of moodledata' ...

  • Create data directory
cd /var/www/
sudo mkdir data
sudo chown -R www-data:www-data data
sudo chmod a+w data
Yes, it does lack anything on DB server.  OP's last post indicates OP needs to research DB

Yes, it does look like someone's notes and a work that was in progress.

Hmmm ... looks like:
might be a place to start.

Lot's to look at and read ... and learn just enough to be functional.
As is anything cloud these days ... 'a journey'!

'SoS', Ken
In reply to Mike Smith

Re: Moodle Installation - Database user, Database password, Database port and Unix socket ?

by James Steerpike -
Picture of Particularly helpful Moodlers
Installing Moodle is dead easy. The hard part is setting up your LAMP server. You will have to understood Linux on the command line. If that is too daunting, use
MoodleCloud.
I wrote a guide for myself which may be useful that covers firewalls, SSH keys and htpps encryption to provide a secure base on Ubuntu for a Moodle install. May be more useful than the guide you follow. Starting from a clean install of basic Ubuntu is usually the best.