How to set up a VPS: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 17: Line 17:
* set up backups
* set up backups
* apt-get install nginx-light mysql-server supervisor
* apt-get install nginx-light mysql-server supervisor
* install fig: http://www.fig.sh/install.html
* OLD: install fig: http://www.fig.sh/install.html
* NEW: install docker-compose: http://docs.docker.com/compose/install/
* fix [[mysql]], create mysql databases and app accounts
* fix [[mysql]], create mysql databases and app accounts
* schedule nightly database snapshots
* schedule nightly database snapshots
* set up sites in <code>/etc/nginx/sites-available</code> and activate in <code>/etc/nginx/sites-enabled</code>
* set up sites in <code>/etc/nginx/sites-available</code> and activate in <code>/etc/nginx/sites-enabled</code>
* set up apps in <code>/etc/supervisor/conf.d</code>
* set up apps in <code>/etc/supervisor/conf.d</code>

Revision as of 20:40, 15 May 2015

  • Log in as root via ssh
  • (PROBABLY NOT NEEDED:) update hostname in /etc/hostname, run "hostname -F /etc/hostname"
  • add line to /etc/hosts
  • dpkg-reconfigure tzdata
  • create user account, add to sudoers:
useradd --create-home --shell /bin/bash myuser
usermod -aG sudo myuser
  • apt-get install emacs24-nox nmap ntp postfix mailutils logwatch unzip zip
  • update ssh to listen on a different port and (carefully) to deny root access
  • config postfix as usual, but set
inet_protocols = ipv4
  • set up firewall
  • set up backups
  • apt-get install nginx-light mysql-server supervisor
  • OLD: install fig: http://www.fig.sh/install.html
  • NEW: install docker-compose: http://docs.docker.com/compose/install/
  • fix mysql, create mysql databases and app accounts
  • schedule nightly database snapshots
  • set up sites in /etc/nginx/sites-available and activate in /etc/nginx/sites-enabled
  • set up apps in /etc/supervisor/conf.d