Setting Up CKAN 2.5 on Ubuntu 14.04

Install root certificates for work https (optional, required if https is intercepted)

sudo mkdir /usr/share/ca-certificates/extra
sudo cp root.crt /usr/share/ca-certificates/extra/root.crt
sudo dpkg-reconfigure ca-certificates

Install CKAN Package

sudo apt-get install -y nginx apache2 libapache2-mod-wsgi libpq5
sudo dpkg -i wget python-ckan_2.5-trusty_amd64.deb
rm python-ckan_2.5-trusty_amd64.deb

Install PostgreSQL

sudo apt-get install -y postgresql solr-jetty


solr_url =
ckan.site_url = http://opendata.test


NO_START=0            # (line 4)
JETTY_PORT=8983       # (line 19)

Add DB User and Init DB

sudo -u postgres createuser -S -D -R -P ckan_default
sudo -u postgres createdb -O ckan_default ckan_default -E utf-8
sudo ckan db init

You should see the CKAN landing page when going to http://localhost


Create an admin user.

Create a user through the web interface, then use the CLI to promote the user.

sudo ckan sysadmin add yournewusername
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *