stpes
-
install the ckan package
-
update ubuntu’s package index
$ sudo apt-get update
-
install packages ckan requires
$ sudo apt-get install -y nginx apache2 libapache2-mod-wsgi libpq5 $ sudo a2enmod wsgi $ sudo service apache2 restart
-
download ckan package
$ wget http://packaging.ckan.org/python-ckan_2.5-trusty_amd64.deb
-
install the ckan package
$ sudo dpkg -i python-ckan_2.5-trusty_amd64.deb
-
-
install postgresql and solr
-
install
$ sudo apt-get install -y postgresql solr-jetty
-
-
update config and init database
-
edit ckan config file
$ pico /etc/ckan/default/production.ini # setup site_id ckan.site_id = default # setup site_url ckan.site_url = http://demo.ckan.org
-
init ckan database
$ sudo ckan db init
-
optionally setup datastore and datapusher check datastore extension
-
optionally enable file uploads check filestore and file uploads
-
-
restart apache and nginx
$ sudo service apache2 restart $ sudo service nginx restart
-
you’re done
# in web browser http://localhost
fixed
-
Server Error An internal server error occurred
-
install packages
$ apt-get install libxml2-dev libxslt1-dev python-dev $ apt-get install python-lxml
-