{"id":17205,"date":"2015-06-16T11:46:05","date_gmt":"2015-06-16T16:46:05","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17205"},"modified":"2022-06-03T03:44:19","modified_gmt":"2022-06-03T08:44:19","slug":"install-etherpad-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/install-etherpad-on-a-centos-7-vps\/","title":{"rendered":"Install Etherpad on a CentOS 7 VPS"},"content":{"rendered":"
<\/div>

\"install-etherpad-on-a-centos-7-vps\" In this tutorial, we will explain how to install Etherpad on a CentOS 7 VPS. Etherpad is an Open Source online editor providing collaborative real-time editing. This guide should work on other Linux VPS<\/a> systems as well but was tested and written for CentOS 7 VPS<\/a>.
\n<\/p>\n

Login to your VPS via SSH<\/h4>\n
ssh user@vps<\/pre>\n

Update the system and install necessary packages<\/h4>\n
[user]$ sudo yum -y upgrade\r\n[user]$ sudo yum install curl vim gcc-c++ make<\/pre>\n

Install MariaDB<\/h4>\n

MariaDB 5.5 is shipped in the default CentOS 7 repository, to install it just run:<\/p>\n

[user]$ sudo yum install mariadb-server<\/pre>\n

To start the MariaDB service and enable it to start on boot, execute the following commands:<\/p>\n

[user]$ sudo systemctl start mariadb.service\r\n[user]$ sudo systemctl enable mariadb.service\r\n<\/pre>\n

Run the following command to secure your installation:<\/p>\n

[user]$ sudo mysql_secure_installation<\/pre>\n

Next, we need to create a database for our Etherpad instance.<\/p>\n

[user]$ mysql -uroot -p\r\nMariaDB [(none)]> CREATE DATABASE etherpad;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON etherpad.* TO 'etherpaduser'@'localhost' IDENTIFIED BY 'etherpaduser_passwd';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q<\/pre>\n

Install the latest Node.js<\/h4>\n
[user]$ curl -sL https:\/\/rpm.nodesource.com\/setup | sudo bash -\r\n[user]$ sudo yum install -y nodejs<\/pre>\n

To verify everything is done correctly, use the command node --version<\/code>.
\nThe output should be similar to the following:<\/p>\n

[user]$ node --version\r\nv0.10.38<\/pre>\n

Create Etherpad user<\/h4>\n

To create a new system user for our Etherpad instance run the following commands:<\/p>\n

[user]$ sudo adduser --home \/opt\/etherpad --shell \/bin\/bash etherpad\r\n[user]$ sudo install -d -m 755 -o etherpad -g etherpad \/opt\/etherpad<\/pre>\n

Install Etherpad<\/h4>\n

The following commands are run as etherpad user. To switch to etherpad user run:<\/p>\n

[user]$ sudo su - etherpad<\/pre>\n

Clone the Etherpad source code to the \/opt\/etherpad\/etherpad-lite<\/code> directory.<\/p>\n

[etherpad]$ git clone git:\/\/github.com\/ether\/etherpad-lite.git ~\/etherpad-lite<\/pre>\n

Copy the default settings configuration file:<\/p>\n

[user]$ cp ~\/etherpad-lite\/settings.json.template ~\/etherpad-lite\/settings.json<\/pre>\n

and change\/add:<\/p>\n