How to use Etherpad Lite with PostgreSQL
Louis Royer edited this page Sep 13, 2019
·
6 revisions
Pages 68
General
Resources
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Stefan's nightly builds (Windows + .deb)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
For Developers
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
How to's
Set up
- Installing Etherpad
- Deploying Etherpad as a service
- Deploying Etherpad on CloudFoundry
- Deploying Etherpad on Heroku
- Running Etherpad on Phusion Passenger
- Putting Etherpad behind a reverse Proxy (HTTPS/SSL)
- How to setup Etherpad on Ubuntu 12.04 using Ansible
Advanced steps
- Migrating from old Etherpad to Etherpad
- Using Etherpad with MySQL
- Customizing the Etherpad web interface
- Enable import/export functionality with AbiWord
- Getting a list of all pads
- Providing encrypted web access to Etherpad using SSL certificates
- Optimizing Etherpad performance including faster page loads
- Getting to know the tools and scripts in the Etherpad /bin/ folder
Integrating Etherpad in your web app
- Embedding a pad using the jQuery plugin
- Using Embed Parameters
- Integrating Etherpad in a third party app (Drupal, MediaWiki, WordPress, Atlassian, PmWiki)
- HTTP API client libraries
for Developers
Clone this wiki locally
- Connect to PostgreSQL by opening a command prompt and typing the following:
psql - Once logged in, issue the following command to create a new user:
CREATE USER etherpad;̀ - Configure a password for the created user. Replace
<password>with your own value:
ALTER USER etherpad WITH PASSWORD '<password>'; - Create a new database which belongs to the new user:
CREATE DATABASE etherpad OWNER etherpad; - Leave the psql client
CTRL + D - Edit settings.json in your Etherpad Lite root folder and change the database settings (if you have a non-default port configured for PostgreSQL you will have to add the "port" setting). It is strongly encouraged to set the option "charset" to "utf8mb4". Depending on your PostgreSQL configuration, you will have to set the "host" key to "localhost".
- Run etherpad lite
Example PostgreSQL Socket Config.
"dbType" : "postgres",
"dbSettings" : {
"user" : "etherpad",
"host" : "localhost",
"password": "password",
"database": "etherpad",
"charset" : "utf8mb4"
}Example for Debian
- Install Postgres:
apt install postgresql - Setup postgres access:
Note: Username needs to be same name as your user that will/is running nodejs.
sudo -u postgres sh -c 'createuser -d etherpad && createdb -O etherpad etherpad' - Add this to your
etherpad-lite/settings.json
"dbType" : "postgres",
"dbSettings" : {
"user" : "etherpad",
"host" : "/var/run/postgresql",
"password": "",
"database": "etherpad",
"charset" : "utf8mb4"
}- Run etherpad lite

