12 March 2016

stpes

  1. install the ckan package

    1. update ubuntu’s package index

       $ sudo apt-get update
      
    2. install packages ckan requires

       $ sudo apt-get install -y nginx apache2 libapache2-mod-wsgi libpq5
      
       $ sudo a2enmod wsgi
       $ sudo service apache2 restart
      
    3. download ckan package

       $ wget http://packaging.ckan.org/python-ckan_2.5-trusty_amd64.deb
      
    4. install the ckan package

       $ sudo dpkg -i python-ckan_2.5-trusty_amd64.deb
      
  2. install postgresql and solr

    1. install

       $ sudo apt-get install -y postgresql solr-jetty
      
    2. setup solr for ckan

    3. setup postgresql for ckan

  3. update config and init database

    1. 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
      
    2. init ckan database

       $ sudo ckan db init
      
    3. optionally setup datastore and datapusher check datastore extension

    4. optionally enable file uploads check filestore and file uploads

  4. restart apache and nginx

         $ sudo service apache2 restart
         $ sudo service nginx restart
    
  5. you’re done

         # in web browser
         http://localhost
    

fixed

  1. Server Error An internal server error occurred

    1. install packages

       $ apt-get install libxml2-dev libxslt1-dev python-dev
       $ apt-get install python-lxml
      


blog comments powered by Disqus