Etherpad Nginx Config

Paste to /etc/nginx/proxy.conf

# proxy.conf
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 10m;
client_body_buffer_size 128k;
proxy_connect_timeout 90;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 4k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;

Paste to /etc/nginx/sites-enabled/mysite

server {
listen %Replace_with_your_adapters_IP%:80;
server_name mydomain.com;
access_log /var/log/nginx/mydomain.com.access.log;
error_log /var/log/nginx/mydomain.com.error.log;
location / {
proxy_pass http://localhost:9000/;
include /etc/nginx/proxy.conf;
}
}

Restart nginx

/etc/init.d/nginx restart

Ubuntu Etherpad Init script won’t work

This is due to a permission error on the log folder

Quickest fix is:

chown -R etherpad /var/log/etherpad

Try that then do

cd /usr/share/etherpad/bin
sudo -u etherpad ./run.sh

Etherpad Startup execution failed with non-200 response: 500

Etherpad won’t start and errors with output

Etherpad Startup execution failed with non-200 response: 500

Cause:

Etherpad can’t talk to MySql

Things to check:

1. Your /etc/hosts

2. Your MySQL conf under networking – /etc/mysql/my.cnf

3. Your MySQL conf  bind-address – /etc/mysql/my.cnf

4. The etherpad.SQL_JDBC_URL value in /usr/share/etherpad/etherpad/etc/etherpad.local.properties

Make sure these are correct then restart mysql.  Don’t assume that connecting with mysql -uroot -ppassword etherpad is a good test.

Enhanced by Zemanta

Grabbing Etherpad Source code using Git

To grab the latest Etherpad source code prior to installation it is just one command.

Pre-reqs: git, git-core (possibly?)


git clone git://github.com/ether/pad.git

Done.

You can grab an older version by doing

git log

finding where ye wanna go back to then

git checkout COMMITVALUE ie bd2190f0453f6a189b84b3ff2f1af05d5e023801

Etherpad emails show wrong port (9000) when sending from version 1 running apache and mod_proxy

Etherpad emails may show as port 9000 if you are using mod_proxy(apache) in front of etherpad.

If this is a problem simply edit:

/usr/share/etherpad/etherpad/etc/etherpad.local.properties
replacing
hidePorts = false
with
hidePorts = true