{"id":106,"date":"2020-02-14T12:00:43","date_gmt":"2020-02-14T12:00:43","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=106"},"modified":"2024-02-02T17:19:22","modified_gmt":"2024-02-02T22:19:22","slug":"installing-mahara-on-ubuntu","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/installing-mahara-on-ubuntu\/","title":{"rendered":"Installing Mahara on Ubuntu"},"content":{"rendered":"\n<p>You can now install Mahara using the Synaptic Package Manager. But before you install mahara, you should create a database for mahara in MySQL or PostgreSQL. You will be asked for the database connectivity information during installation.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo apt-get install mahara<\/code><\/pre>\n\n\n\n<p>Once installation is complete, go to the mahara installation directory<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/usr\/share\/mahara<\/code><\/pre>\n\n\n\n<p>and backup the config file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cp config.php config.orig.php<\/code><\/pre>\n\n\n\n<p>Then edit the config file. Make sure the following variables are defined<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$cfg->dbtype   = 'mysql5';\n$cfg->dbhost   = 'localhost';\n$cfg->dbname   = 'mahara';\n$cfg->dbuser   = 'mahara';\n$cfg->dbpass   = 'your_database_password';\n$cfg->wwwroot = 'http:\/\/localhost\/mahara\/';\n$cfg->dataroot = '\/var\/maharadata';<\/code><\/pre>\n\n\n\n<p>Next, create a directory to store your files. Make it apache writable.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ sudo mkdir \/var\/maharadata\n$ sudo chown -R www-data \/var\/maharadata<\/code><\/pre>\n\n\n\n<p>To use, go the your web browser and type<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;localhost\/mahara<\/code><\/pre>\n\n\n\n<p>Enjoy Mahara!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now install Mahara using the Synaptic Package Manager. But before you install mahara, you should create a database for mahara in MySQL or PostgreSQL. You will be asked for the database connectivity information during installation. Once installation is complete, go to the mahara installation directory and backup the config file Then edit the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[82,35],"class_list":["post-106","post","type-post","status-publish","format-standard","hentry","category-linux","tag-installation-guide","tag-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/comments?post=106"}],"version-history":[{"count":1,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/106\/revisions"}],"predecessor-version":[{"id":107,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/106\/revisions\/107"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}