-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
How to use Etherpad Lite with PostgreSQL
Louis Royer edited this page Sep 13, 2019
·
6 revisions
- 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
"dbType" : "postgres",
"dbSettings" : {
"user" : "etherpad",
"host" : "localhost",
"password": "password",
"database": "etherpad",
"charset" : "utf8mb4"
}
- 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
- Docs
- Translating
- HTTP API
- Plugin framework (API hooks)
- Plugins (available)
- Plugins (list)
- Plugins (wishlist)
- Etherpad URIs / URLs to specific resources IE export
- Etherpad Full data export
- Introduction to the source
- Release Procedure
- Etherpad Developer guidelines
- Project to-do list
- Changeset Library documentation
- Alternative Etherpad-Clients
- Contribution guidelines
- 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
- 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
- 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