Install Moodle on Amazon EC2

Install Moodle on Amazon EC2

by Daniel Leinweber -
Number of replies: 5

I am farily new with Moodle, but have been trying to install it on Amazon EC2 Linux instance, but have not been able to do fully.  Wondering if anyone else that has done it or has knowledge would be able to help with the process.  Thanks

Average of ratings: -
In reply to Daniel Leinweber

Re: Install Moodle on Amazon EC2

by steve miley -

Daniel - you need to prep your server of course, with mysql, apache,

and all the right php libraries.  here are the combinations of yum commands i did on the basic amazon linux instance -

3 yum install mysql mysql-server httpd php php-gd php-xmlrpc
5 yum install php-mysql php-dom php-intl php-mbstring
16 yum update
81 yum install php-soap
150 yum install telnet
154 yum search httpd | grep ssl
155 yum search httpd
163 yum search ssl
164 yum install openssl
165 yum install mod_nss
171 yum search ssl
172 yum install mod_ssl
179 history | grep yum >

 

You should have the install page, and make sure you read it, but the cheat sheet notes are for a ec2 instance - 

/etc/init.d/httpd start

/etc/init.d/mysql start

## then do the safe install (you'll see it in the text)

download and copy the moodle tree into /var/www or /var/www/html

do a 

chown -R apache /var/www/html/moodle

run your mysql database commands (3) from the install guide

create your data directory - 

mkdir -p /data/moodle 

chown apache /data/moodle 

## this is where the datafiles, course files, sessions, get stored

Do the install, setting the proper paths,  once the install is done, do a

chown -R root /var/www/html/moodle 

In reply to steve miley

Re: Install Moodle on Amazon EC2

by Alex Saavedra -

Steve,

Doesn't it make more sense to use Amazon RDS for anything database related? Just thinking out loud.

A. Saavedra

In reply to Alex Saavedra

Re: Install Moodle on Amazon EC2

by steve miley -

Alex -

I haven't used RDS.  I only use EC2 on personal test machines, so I buy cheap spot instances, and just use a single machine. 

If I was going to run a production system on amazon,  that looks like it would save $$ in system time and give better reliability/performance.

 

Have you used rds? 

In reply to steve miley

Re: Install Moodle on Amazon EC2

by Alex Saavedra -

Steve,

I haven't used RDS myself, but in a previous work my team used to run such instances for customers with success for production systems.

HTH,

A. Saavedra

In reply to Daniel Leinweber

Re: Install Moodle on Amazon EC2

by Ashi yadav -

make a database name is moodle ==> change its in utf8 format or run this query in my sql 

create database moodle default character set utf8;

 

and the try it will done