Setting up a new shared web server

The following steps should be taken to setup a new web server:

  1. In ansible seed repo, edit hosts.yml to copy each line with weboriring001 to your new name.
  2. Execute sower --live generate:weborigin --parent hostxxx.mayfirst.org to generate a new weborigin yaml file.
  3. Follow regular kvm guest setup steps
  4. Be sure you created the ssh key in the step above!
  5. Grant access to the mysql server so your weborigin server can run proxysql properly. Adjust to account for all red enabled mysql servers. sower --live playbook --tags proxysql mysql*.mayfirst.org
  6. Add as upstream servers to web proxies: sower --live playbook --tags nginx-proxy webproxy*.mayfirst.org
  7. Add IP to mail filter servers so it can relay email: sower --live playbook --tags postfix mailfilter*.mayfirst.org
  8. Insert the server into the red_server table: INSERT INTO red_server SET accepting = 0, server = 'weborigin00x.mayfirst.org', closed = 1, mountpoint = 'data0xxx', server_default_php_version = '8.4', server_proxysql = 1, server_dedicated_mail = 0;