• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » How to Install CouchDB on Ubuntu Cloud Server

By Abhishek Ghosh March 24, 2019 11:07 am Updated on March 24, 2019

How to Install CouchDB on Ubuntu Cloud Server

Advertisement

Here Are the Steps to How to Install CouchDB on Ubuntu Cloud Server With root Access as Single Node. Data can be ported from Cloudant to CouchDB. There is CouchDB, CouchIO, CouchOne, Couchbase, Couchbase Server, Couchbase Mobile, Couchbase Lite, CouchApps, BigCouch, Touchbase, Membase, Memcached, MemcacheDB. All are different but are related in a way not obvious from the names alone. First, there was CouchDB, a database created by Damien Katz, a former IBM developer. That became Apache CouchDB which we are talking about. CouchDB is an open-source/free software project of The Apache Software Foundation and is released under the Apache License, FSF-approved, OSI-approved, GPL-compatible. Cloudant is a service from IBM which is closer to CouchDB but horizontally scalable. localhost installation of Cloudant actually possible. It is almost standard to use CouchDB when there is either need of CouchDB or the need is for Cloudant.

How to Install CouchDB on Ubuntu Cloud Server

 

Steps to Install CouchDB

 

Official documents say that 1GB free RAM required for single core processor. So instance with 2GB RAM should give optimum performance for testing. (Minimum System Requirements. Processor: 1 CPU 1.2 GHZ. RAM: 2 GB. DISK Space: 1 GB. JAVA: Java 7). 2 CPU cores and 4GB memory is practical for real work & load testing. Apache’s site has the required repository :

https://apache.bintray.com/

SSH to your instance. First update, upgrade :

Advertisement

---

apt update -y && apt upgrade -y
apt install software-properties-common

Before starting, you will need to install Apache web server to your server for practical reason. Follow our guide optimized installation of Apache2 on Ubuntu 18.04 LTS as step one. For lazy quick installation of Apache2 (not recommended) run :

sudo apt-get install apache2 -y
sudo systemctl start apache2
sudo systemctl enable apache2

WAY 1

Now, first recall the distro names :

Debian 8: jessie
Debian 9: stretch
Ubuntu 14.04: trusty
Ubuntu 16.04: xenial
Ubuntu 18.04: bionic

Replace `{distribution}` in below command with the distro name of above for your cloud server and run it to include the package repository :


echo "deb https://apache.bintray.com/couchdb-deb {distribution} main" | sudo tee -a /etc/apt/sources.list

Install the repository key:

 

curl -L https://couchdb.apache.org/repo/bintray-pubkey.asc | sudo apt-key add - 

Press ENTER.

WAY 2

sudo add-apt-repository ppa:couchdb/stable

Common next steps:

Then update the repository cache and install the package:

apt update -y && apt upgrade -y
apt install couchdb -y

During the installation, you will prompt you for some initial configuration. The next screen will ask you what you want the CouchDB interface bind address to be. By default, this is 127.0.0.1, but if you want it to be publicly accessible you need to change the bind address to 0.0.0.0. Once the installation is finished, run these :

sudo systemctl start couchdb
sudo systemctl enable couchdb
sudo systemctl status couchdb

Technically, first run will need to be started with the below command :

 sudo -i -u couchdb /home/couchdb/bin/couchdb

CouchDB will be running on port 5984. You can access it by visiting the URL `http://your-server-ip:5984/_utils/`. After installation and initial startup, visit `http://your-server-ip:5984/_utils#setup. You will be asked to set up CouchDB as a single-node instance or set up a cluster. When you click “Single-Node-Setup”, you will get asked for an admin username and password. Choose them well and remember them.

We believe you followed our Apache installation guide and setup SSL/TLS certificate for your domain or will do those in future. We are now describing after doing those steps. We just need to set it up in the configuration files for CouchDB. To do that, you will need to modify the local.ini file:

sudo nano /opt/couchdb/etc/local.ini

Below is kind of example how it should be (change with real path, names) :


…

[daemons]
; enable SSL support by uncommenting the following line and supply the PEM's below.
; the default ssl port CouchDB listens on is 6984
httpsd = {chttpd, start_link, [https]}

…

[ssl]
port = 6984
cert_file = /opt/couchdb/letsencrypt/live/YOUR_DOMAIN_NAME.com/cert.pem
key_file = /opt/couchdb/letsencrypt/live/YOUR_DOMAIN_NAME.com/privkey.pem
cacert_file = /opt/couchdb/letsencrypt/live/YOUR_DOMAIN_NAME.com/fullchain.pem

Restart CouchDB. You will be able to use domain name with CouchDB now. Please check official documentations for more configuration.

If you face permission error, probably need to change permissions :


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

# find /home/couchdb -type d -exec chmod 0770 {} \;

`couchdb:couchdb` can be changed with `www-data:couchdb`.

Tagged With couchdb on server install remote

This Article Has Been Shared 855 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How to Install CouchDB on Ubuntu Cloud Server

  • WordPress XML-RPC Attack & Fake PHP5-FPM Error

    WordPress XML-RPC Attack Can Bring DDoS Resulting in Random 502 PHP5-FPM Errors on Nginx Server or Can Make the Database Down. Here is Fix.

  • Setup SFTP Without Shell Access For WordPress, Cloud Server

    Often We Need To Host Account On VPS OR Cloud Server Where It Is Desired To Have A Setup SFTP Without Shell Access For WordPress Like cPanel.

  • How Google Cloud Platform is Compared to IBM, OVH, DO, Linode?

    How Google Cloud Platform is When Compared to Other Cloud Webhosts IBM, OVH, DO, Linode? Not surprisingly not cost effective in terms of bench-marking.

  • Install Apache Gearpump On localhost (Ubuntu, Windows 10 Bash, Mac)

    Apache Gearpump is a real-time big data streaming engine, it is event/message based. Here is How to Install Apache Gearpump On localhost or Cloud Server.

  • How To Install Memcached on Ubuntu Server And Configure WordPress

    Here Are The Steps On How To Install Memcached on Ubuntu Server 16.04, 18.04 And Configure WordPress To Optimize Page Loading Speed.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (22.1K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • FaaS Versus PaaS Deployment: What You Should Know May 18, 2022
  • What Is A Digital Media Consultancy? May 17, 2022
  • How Artificial Intelligence (AI) Is Changing The Way We Play Bingo May 16, 2022
  • Why You Need A Big Data Consultant May 15, 2022
  • The Connection Between AI And Online Slots May 13, 2022

About This Article

Cite this article as: Abhishek Ghosh, "How to Install CouchDB on Ubuntu Cloud Server," in The Customize Windows, March 24, 2019, May 19, 2022, https://thecustomizewindows.com/2019/03/how-to-install-couchdb-on-ubuntu-cloud-server/.

Source:The Customize Windows, JiMA.in

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Privacy Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2022 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy