{"id":186,"date":"2020-03-06T20:05:00","date_gmt":"2020-03-06T20:05:00","guid":{"rendered":"https:\/\/molecularsciences.org\/content\/?p=186"},"modified":"2020-12-04T20:17:40","modified_gmt":"2020-12-04T20:17:40","slug":"installing-dkan-on-debian","status":"publish","type":"post","link":"https:\/\/molecularsciences.org\/content\/installing-dkan-on-debian\/","title":{"rendered":"Installing DKAN on Debian (Ubuntu)"},"content":{"rendered":"\n<p>Following are the steps: <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Install the necessary libraries<\/li><li>Setup the database<\/li><li>Install and Setup DKAN<\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Install necessary libraries<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get update \nsudo apt-get install apache2\nsudo apt-get install mysql<\/code><\/pre>\n\n\n\n<p> Note: write down the password you create for the database<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt-get install php\nsudo apt-get install php7.0-mysql php7.0-gd php7.0-gd php7.0-xml php7.0-simplexml php-curl\nsudo service apache2 restart<\/code><\/pre>\n\n\n\n<p>Copy the public IP from your amazon instance page and paste it in your browser. You should see apache welcome page<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/var\/www\nchmod -R 755 html 10 cd html\ngit clone --branch master https:\/\/github.com\/GetDKAN\/dkan-drops-7.git dkan\ncd dkan\/sites\/default\nmkdir files; chmod -R 777 files<\/code><\/pre>\n\n\n\n<p>Note: Change permissions once installation of dkan is complete<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cp default.settings.php settings.php; \nchmod 777 settings.php<\/code><\/pre>\n\n\n\n<p> Change permissions to 644 once installation of dkan is complete<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Setup your database<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>mysql -u root -p <\/code><\/pre>\n\n\n\n<p>The password should have been created when you installed the database.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>create database dkan;\ngrant all privileges on dkan.* to 'root'@'localhost';<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install DKAN<\/h3>\n\n\n\n<ol class=\"wp-block-list\"><li>Open your browser<\/li><li>Type your ip address\/dkan. For example, 127.0.0.1\/dkan<\/li><li>Follow instructions<\/li><li>Enjoy DKAN<\/li><\/ol>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following are the steps: Install the necessary libraries Setup the database Install and Setup DKAN Install necessary libraries Note: write down the password you create for the database Copy the public IP from your amazon instance page and paste it in your browser. You should see apache welcome page Note: Change permissions once installation of [&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":[81,82,35],"class_list":["post-186","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dkan","tag-installation-guide","tag-linux"],"_links":{"self":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/186","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=186"}],"version-history":[{"count":2,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/186\/revisions"}],"predecessor-version":[{"id":188,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/posts\/186\/revisions\/188"}],"wp:attachment":[{"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/media?parent=186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/categories?post=186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/molecularsciences.org\/content\/wp-json\/wp\/v2\/tags?post=186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}