Skip to main content

How to set up password authentication with Apache or Nginx on Ubuntu

Securing sensitive content is essential for protecting data integrity and user privacy. One effective way to implement security is by restricting access to specific directories or resources using either Apache or Nginx authentication tools. This provides a comprehensive reference for configuring password protection on both Apache and Nginx web servers using the htpasswd utility.

CKAN managing your database - initialise, clean and export/import

Before you can run CKAN for the first time, you need to run db init to initialise your database:

ckan -c /etc/ckan/default/ckan.ini db init

If this fails due to a permission issue, then the user and group assigned are incorrect.  Or if you are a root user, you can use sudo

sudo ckan -c /etc/ckan/default/ckan.ini db init

If you forget this step you'll see a 500 server error:

Installing CKAN from package on Ubuntu 20.04

 

Install the CKAN package

Begin by cleaning up your server environment.  Do this by updating Ubuntu’s package index:

sudo apt update

Now you can install the packages that CKAN requires (including ‘git’, which will allow you to install CKAN extensions):

sudo apt install -y libpq5 redis-server nginx supervisor

Response

Subscribe to 20.04