{"id":1617,"date":"2011-02-06T19:34:15","date_gmt":"2011-02-06T23:34:15","guid":{"rendered":"http:\/\/www.dr-chuck.com\/csev-blog\/?p=1617"},"modified":"2011-12-17T12:34:59","modified_gmt":"2011-12-17T16:34:59","slug":"running-moodle-1-9-10-on-amazon-web-services","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2011\/02\/running-moodle-1-9-10-on-amazon-web-services\/","title":{"rendered":"Running Moodle 1.9.10 on Amazon Web Services"},"content":{"rendered":"<p>I was trying to get the latest  Moodle 1.9 running with a solid PHP with enough extension bits to <a href=\"http:\/\/docs.moodle.org\/en\/IMS_Common_Cartridge_import\" target=\"_new\">import an IMS Common Cartridge (IMS-CC)<\/a> <a href=\"http:\/\/www.moodle.org\/\" target=\"_new\"><img decoding=\"async\" src=\"http:\/\/moodle.org\/theme\/image.php?theme=moodleofficial&#038;image=moodle-logo&#038;rev=241&#038;component=theme\" align=\"right\"><\/a> that requires PHP5, DOM, XSL and LIBXML (2.6.30 or newer) extensions to be installed in the server.  I had lots of hosted PHP instances from various sources that simply did not have enough of the plugins installed.  So I needed to make a new one from scratch and since I have recently become an Amazon EC2 geek, I figured I would try it there.<\/p>\n<p>I figured there would be a nice AMI (image) which had exactly what I wanted.   There was a cool image from <a href=\"http:\/\/bitnami.org\/stack\/moodle\" target=\"_new\">BitNami<\/a> but it was for a 2.0.1 Moodle, not a Moodle 1.9.10.  <\/p>\n<p>But I figured I would be best off if I started with this image and did some hacking rather than starting from a naked image and adding stuff.  I am sure there is a better way and I really wish BitNami would just give me a nice 1.9.10 image as good as their 2.0.1 image.   But until then, it is <a href=\"http:\/\/www.youtube.com\/watch?v=otCpCn0l4Wo\" target=\"_new\">hacker-time<\/a>.<\/p>\n<p>So here is my list of hack steps:<\/p>\n<pre>\r\n\r\nStart with a Moodle 2.0 Image from BitNami\r\n\r\nhttp:\/\/bitnami.org\/stack\/moodle\r\n\r\nPick the EBS version - I choose ami-68c23301\r\n\r\nssh -i funkeys.pem bitnami@ec2-55-55-55-55.compute-1.amazonaws.com\r\n\r\nsudo bash\r\n\r\ncd \/opt\/bitnami\/apps\/moodle\/\r\n\r\nmkdir tmp\r\ncd tmp\r\ncurl -O http:\/\/download.moodle.org\/stable19\/moodle-1.9.10.zip\r\napt-get install unzip\r\nunzip moodle-1.9.10.zip\r\n\r\ncd \/opt\/bitnami\/apps\/moodle\/\r\nmv htdocs htsave\r\nmv tmp\/moodle htdocs\r\n\r\nhttp:\/\/ec2-55-55-55-55.compute-1.amazonaws.com\/moodle\/install.php\r\n\r\nChoose a language: Next \r\nChecking your PHP settings: Next \r\n\r\nPlease confirm the locations of this Moodle installation:\r\n\r\nchmod 777 \/opt\/bitnami\/apps\/moodle\/moodledata\r\n\r\nPress Next\r\n\r\nAt the Database Setup Screen:\r\n\r\ngrep \"'password'\" \/opt\/bitnami\/apps\/phpmyadmin\/htdocs\/config.inc.php \r\n\r\nLook for a line that looks like:\r\n\r\n$cfg['Servers'][$i]['password'] = 'zippy';\r\n\r\nDatabase Name: moodle19\r\nUser: root\r\nPassword: zippy (replace this with what you see above)\r\n\r\nPress Next\r\n\r\nChecking your environment: Next\r\nDownload language pack: Next\r\n\r\nConfiguration completed:\r\n\r\nCopy PHP code  from the browser.\r\n\r\nEdit \/opt\/bitnami\/apps\/moodle\/htdocs\/config.php\r\nPaste in the PHP code from the browser and save the file\r\n\r\nBack in the browser Press \"Continue\"\r\n\r\nYou should be at the license screen - from there proceed normally\r\n\r\nOnce things are completely done and if you want to install Basic LTI :)\r\n\r\n\/opt\/bitnami\/apps\/moodle\/tmp\r\n\r\n curl -O http:\/\/basiclti4moodle.googlecode.com\/files\/basiclti4moodle-Jan-13-2011.zip\r\nunzip basiclti4moodle-Jan-13-2011.zip \r\n\r\nmv \/opt\/bitnami\/apps\/moodle\/tmp\/basiclti4moodle\/IMS*\/*1.9*\/mod\/basiclti \/opt\/bitnami\/apps\/moodle\/htdocs\/mod\/\r\n\r\nBack in Moodle, Press \"Notifications\" as the Admin to create the Basic LTI tables.\r\n\r\nAnd you are done.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I was trying to get the latest Moodle 1.9 running with a solid PHP with enough extension bits to import an IMS Common Cartridge (IMS-CC) that requires PHP5, DOM, XSL and LIBXML (2.6.30 or newer) extensions to be installed in the server. I had lots of hosted PHP instances from various sources that simply did [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1617","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/1617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=1617"}],"version-history":[{"count":13,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/1617\/revisions"}],"predecessor-version":[{"id":2870,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/1617\/revisions\/2870"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=1617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=1617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=1617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}