Installing CKAN with Drupal

时间:2015-11-12 11:47:56

标签: drupal drupal-7 ckan

I have created a website using Drupal.

On the site, there is a tab called "Data".

What I want to do, is to install CKAN so that it can be used within the "Data"-section of carbontrackandtrace. That way I can pull data from different databases and display it on the "Data" page of carbontrackandtrace.com.

I am completely new to both Drupal and CKAN, and I can't seem to even understand where to start. I have tried installing CKAN by logging in on the server using SSH terminal, but I don't think I have the permission to install CKAN even after I log in with username and password.

How do I go about installing CKAN so that I can host a CKAN site "within" the "Data" section of the website?

Any help is much appreciated as I'm completely stuck right now.

1 个答案:

答案 0 :(得分:0)

您需要在服务器上拥有管理员权限才能安装新软件,例如CKAN,所以请向您的系统管理员咨询。

CKAN安装说明在这里:http://docs.ckan.org/en/latest/maintaining/installing/install-from-package.html如果你不在ubuntu上,那么你将走出人迹罕至的地方而不适合初学者。

您需要设置apache / nginx配置以将请求发送到CKAN路径(而不是Drupal),例如/ dataset,/ organization等。

要将Drupal连接到CKAN,您需要在菜单栏中添加一个链接到CKAN搜索页面:/ dataset

在CKAN中我想你想要链接回Drupal,所以你要自定义你的CKAN模板,这涉及到创建一个扩展。请参阅:http://docs.ckan.org/en/latest/theming/index.html