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:
ckan-worker:ckan-worker-00 FATAL Exited too quickly (process log may have details)
Working through a CKAN installation on Ubuntu 20.04
User sees a server 500 error.
syslog shows: ckan-worker:ckan-worker-00 FATAL Exited too quickly (process log may have details)
Information:
syslog
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
Configure Nginx SSL + force HTTP to redirect to https and force non-www to www using Nginx configuration file only
Forcing https and www or non-www is a process that I was a custom to through .htaccess. In fact I had become very strong at managing and working my .htaccess files. However, what I had become strong in one area, I was oblivious to using other methods. My bad.