How to Install Apache CouchDB on Ubuntu 16.04

r00t April 21, 2018

Install Apache CouchDB on Ubuntu 16.04

In this tutorial we will show you how to install Apache CouchDB on Ubuntu 16.04. We will also install and configure its prerequisites. Apache CouchDB is a free software source which allows us to access data from where necessary by specifying the Mentor Replication Protocol, which has been executed by an assortment of jobs and products that cover all IT environments, from globally distributed server clusters, or cellular phones to internet browsers.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Apache CouchDB on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing dependencies Apache CouchDB.

First, add the PPA repository in our Ubuntu machine:

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:couchdb/stable

Install Apache CouchDB by running the following line:

sudo apt-get update
sudo apt-get install couchdb

Next, fixing ownership and permission:

sudo chown -R couchdb:couchdb /usr/bin/couchdb /etc/couchdb /usr/share/couchdb
sudo chmod -R 0770 /usr/bin/couchdb /etc/couchdb /usr/share/couchdb

After the installation process is finished. start CouchDB and make it run at startup:

systemctl start couchdb
systemctl enable couchdb

Step 3. Enable Apache CouchDB Fauxton Panel.

Apache CouchDB provides an HTTP panel for Admin access on default port “5984”. In this section, we are going to enable the admin panel to be accessible over the Internet:

nano /etc/couchdb/local.ini

Find the “[httpd]” directive and change the “bind_address” like below:

bind_address = 0.0.0.0

Restart the CouchDB service to take effect:

systemctl restart couchdb

Step 4. Accessing Apache CouchDB from a web browser.

Now, to access Apache CouchDB, we go to a browser and enter the following syntax. This will be the first environment of Apache CouchDB in CentOS 7:

http://DOMAIN_OR_IP:5984/_utils/

Congratulation’s! You have successfully install and configured Apache CouchDB on your Ubuntu 16.04 server. Thanks for using this tutorial installing Apache CouchDB on Ubuntu 16.04 LTS (Xenial Xerus) system.

The Tags:

Leave a Comment

Comments are closed.