Difference between revisions of "TMS:Chapter Website Setup"

From Marspedia
Jump to: navigation, search
Line 42: Line 42:
  
 
==Login to User & Set up Wordpress==
 
==Login to User & Set up Wordpress==
# Open a terminal on your computer and connect via SSH to the new do
+
# Open a terminal on your computer and connect via SSH to the new user account.  Eg:
 +
 
 +
<nowiki>$ ssh tmsseattle@seattle.marssociety.org</nowiki>
 +
 
 +
# Install WP-CLI (reference: '''[https://wp-cli.org/ WP-CLI]''')
 +
## curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

Revision as of 08:50, 13 May 2019

This is a guide for setting up a new Chapter website.

A request will come from the Mars Society's Chapters Coordinator to set up a new chapter website. The Chapters Coordinator will provide the contact information for the chapter.

Initial Setup in Dreamhost Panel

  1. Login to the Dreamhost Control Panel
  2. Select Domains > Manage Domains
  3. Click the blue button "Add Hosting to a Domain / Subdomain"
  4. Fill out the form as follows:
    1. Domain to Host: create a new subdomain of the form <chaptername>.marssociety.org (eg. seattle.marssociety.org or india.marssociety.org)
    2. Select the Remove WWW option.
    3. Run this domain under the user: Keep Create User selected.
    4. Type in a new user name of the form <tmschapter> (eg: tmsseattle or tmsindia). Abbreviations are ok.
    5. The Web & Logs directories will be pre-filled, leave them alone.
    6. Keep the PHP version selected as 7.2.
    7. Check the option for HTTPS. Secure sites are typically assumed these days.
    8. Keep all the other checkboxes the same
    9. Click & do the Captcha if it is present on the page. If is not present, go onto the next step.
  5. Click the blue button 'Fully Host This Domain'.
  6. Review the success message and make a note of the password provided for the user.

Set up Database

  1. Select Advanced > MySQL Databases
  2. Fill out the form as follows:
    1. Database Name: use a name of the form <tmschapter>_wp' (eg: tmsseattle_wp or tmsindia_wp)
    2. Use Hostname: Select the option to Create a New Hostname (at bottom of the dropdown)
    3. New Hostname type in mysql and select the chapter's subdomain that you set up before: <chaptername>.marssociety.org
    4. First User: Select the option to Create a new user (at bottom of the dropdown).
    5. New Username: use the form tmschapter_db' (eg. tmsseattle_db or tmsindia_db)
    6. Create a strong password that is 20 letters long. You can do this various ways, eg Strong Password Generator
    7. Make a note of the password and paste it into the 2 fields.
  3. Click the blue button Add the Database Now.

Convert user to SSH

  1. Select Users > Manage Users
  2. Next to the user you created previously, click Edit.
  3. On the next screen, change the User Type to Shell User and make sure Disallow FTP is checked.
  4. Click the blue button Save Changes.
  5. Note: wait a few minutes before moving on to the next section, to allow the user to be converted.


Login to User & Set up Wordpress

  1. Open a terminal on your computer and connect via SSH to the new user account. Eg:

$ ssh tmsseattle@seattle.marssociety.org

  1. Install WP-CLI (reference: WP-CLI)
    1. curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar