WordPress Configuration

Outline

To integrate Acclaim Cloud Platform into your WordPress, we need the following items:

(1) Configure the ACP Plugin to talk to the image. We covered the settings of the plugin in Step 4. The only difference is that you need to tell your server’s plugin to point to the ACP image. specifically, you need to change

-Web settings
-Virtual Host Settings
-DB (and Mysql/mariadb) Settings – these need to point to the DB that your WordPress is using (leave DB slugs as none)
-Signup and Update Server ShortCodes may be filled later once you create those forms during this step (below)

(1) Plugins & Plugin Configuration

    1. Caldera Forms
  1. Caldera Forms – Run Action
  2. Verify Email for Caldera Forms
    1. The last two are considered “Add Ons” to main Caldera Forms plugin. They are not available on WordPress plugin store, and must be installed from Caldera Labs site
    2. At the time of development, they were freely available from WordPress, but have since been monetized
      1. We have bundled the free versions with the image for testing purposes
      2. You may purchase the Add-ons from Caldera or upgrade to our plugin Pro Version that includes them.
  3. Any plugin that can send mail – depends on your email provider. For Gmail, you may use WP Mail SMTP.
    1. Test the mail plugin to ensure it can send mails before proceeding

(2) Server Management Pages

  1. Sign Up Page
  2. Login Page
  3. Quickstart Help Page
  4. Dashboard Page
  5. Error Page
  6. Set Password Page

(3) Theme Changes

To create the menus for the server management dashboard, you need to make some changes to your WordPress theme.

Note: As you go through these configurations, use the ACP Image as a reference because all these items have been configured in the ACP Image.

Plugins & Plugin Configuration

Add the plugins listed above.

Do not proceed until all the plugins are installed and activated, and SMTP email is successfully tested.

  1. Add the following forms using the Caldera Forms plugin

  1. It is easiest to use the Blank Forms template

  1. Add Server Form
    1. Form Name: Add Server
    2. Split Screen into 4 columns
    3. Under Layout tab, add the Fields
      1. Name:
        1. Field Type: Basic Single Line Text
        2. Name: Name
        3. Slug: server_name
        4. Required: Checked
      2. CPUS:
        1. Field Type: Dropdown Select
        2. Name: CPUs
        3. Slug: server_cpus
        4. Required: Selected
        5. Add Option (select Show Values), then add
          1. Calculation Value: 1
          2. Value: 1
          3. Label: 1
        6. Repeat Add Option for
          1. Calculation Value: 2
          2. Value: 2
          3. Label: 2
        7. Repeat Add Option for
          1. Calculation Value: 3
          2. Value: 3
          3. Label: 3
        8. Repeat Add Option for
          1. Calculation Value: 4
          2. Value: 4
          3. Label: 4
        9. Save Form

  • Environment
    1. Field Type: Dropdown Select
    2. Name: Environment
    3. Slug: server_env
    4. Required: Checked
    5. Add Option (select Show Values), then add
      1. Calculation Value: Prod
      2. Value: Prod
      3. Label: Prod
    6. Repeat Add Option for
      1. Calculation Value: Dev
      2. Value: Dev
      3. Label: Dev
    7. Repeat Add Option for
      1. Calculation Value: QA
      2. Value: QA
      3. Label: QA
    8. Repeat Add Option for
      1. Calculation Value: Sandbox
      2. Value: Sandbox
      3. Label: Sandbox
    9. Repeat Add Option for
      1. Calculation Value: Other
      2. Value: Other
      3. Label: Other
    10. Save Form

  1. Memory
    1. Field Type: Dropdown Select
    2. Name: Memory
    3. Slug: server_memory
    4. Required: Checked
    5. Add Option (select Show Values), then add
      1. Calculation Value: 512
      2. Value: 512
      3. Label: 512
    6. Repeat Add Option for
      1. Calculation Value: 1024
      2. Value: 1024
      3. Label: 1024
    7. Repeat Add Option for
      1. Calculation Value: 2048
      2. Value: 2048
      3. Label: 2048
    8. Repeat Add Option for
      1. Calculation Value: 4096
      2. Value: 4096
      3. Label: 4096
    9. Repeat Add Option for
      1. Calculation Value: 8192
      2. Value: 8192
      3. Label: 8192
    10. Repeat Add Option for
      1. Calculation Value: 16384
      2. Value: 16384
      3. Label: 16384
    11. Repeat Add Option for
      1. Calculation Value: 32768
      2. Value: 32768
      3. Label: 32768
    12. Save Form

  1. Server Type
    1. Field Type: Dropdown Select
    2. Name: Type
    3. Slug: server_type
    4. Required: Checked
    5. Add Option (select Show Values), then add
      1. Calculation Value: RedHat
      2. Value: RedHat
      3. Label: RedHat
    6. Repeat Add Option for
      1. Calculation Value: Fedora
      2. Value: Fedora
      3. Label: Fedora
    7. Repeat Add Option for
      1. Calculation Value: Centos
      2. Value: Centos
      3. Label: Centos
    8. Repeat Add Option for
      1. Calculation Value: Ubuntu
      2. Value: Ubuntu
      3. Label: Ubuntu
    9. Repeat Add Option for
      1. Calculation Value: Debian
      2. Value: Debian
      3. Label: Debian
    10. Save Form

  1. Server Disk Size
    1. Field Type: Dropdown Select
    2. Name: Disk
    3. Slug: server_disksize
    4. Required: Checked
    5. Add Option (select Show Values), then add
      1. Calculation Value: 10GB
      2. Value: 10GB
      3. Label: 10GB
    6. Repeat Add Option for
      1. Calculation Value: 20GB
      2. Value: 20GB
      3. Label: 20GB
    7. Repeat Add Option for
      1. Calculation Value: 50GB
      2. Value: 50GB
      3. Label: 50GB
    8. Repeat Add Option for
      1. Calculation Value: 100GB
      2. Value: 100GB
      3. Label: 100GB
    9. Save Form

  • Meta Data:
    1. Field Type: Basic Single Line Text
    2. Name: Meta Data
    3. Slug: server_meta
    4. Required: Checked
    5. Save Form

  • Create Add Server Submit Button
    1. Field Type: Basic Button
    2. Name: Create Server!
    3. Slug: submit
    4. Save Form

  1. Under Email Tab, disable Mailer

 

  1. Save form

 

  1. Under Processors tab, add two Run processors

  1. VPN Run Processor
    1. Position: Post-Process
    2. Type: Filter
    3. Action / Filter: acp-vpn-provision
    4. Save Form

  1. Server Provision Processor
    1. Position: Post-Process
    2. Type: Filter
    3. Action / Filter: acp-server-provision
    4. Save Form

  1. No changes are required on Conditions, Revisions, Variables or Responsive tab.

 

  1. Click on Form Settings

  1. Set/Change Success Message
    1. Server Provisioning in Progress. It should take only a few minutes. Refresh Page for Status.
  2. Set Capture Entries
    1. Disable
  • Leave rest as default

 

  1. Save Form

 

  1. Final Form should be/look as follows

  1. Update Server Form
    1. Best way to go about it is to clone the Add Server Form (mouse over Add Server Form, then select ‘Clone’)

    1. Remove the following fields by clicking on Edit icon and Deleting the field on at bottom right
      1. Name
      2. Environment
  • Type
  1. Save Form

  1. Add a hidden field for server_id
    1. Field Type: Hidden
    2. Name: Server ID
  • Slug: server_id
  1. Save Form

  1. Add Another hidden field below Memory
    1. Field Type: Hidden
    2. Name: Form Name
  • Slug: form_name
  1. Save Form

  1. Add a HTML field under Disk
    1. Content à HTML

    1. Field Type: HTML
  • Name: info
  1. Slug: info
  2. Text area: *shrinking disk size not supported
  3. Save Form

  1. Edit the Submit Button
    1. Name: Update Server!
    2. Save Form.

  1. Under Email Tab, disable Mailer
    1. Save form

 

  1. If you cloned the form from Add Server form, there will be two Run processors under Processors tab. Delete one and update the remaining one (other create one as follows)

 

  1. VPN Run Processor
    1. Position: Post-Process
    2. Type: Filter
    3. Action / Filter: acp-server-update
    4. Save Form

  1. No changes are required on Conditions, Revisions, Variables or Responsive tab.

 

  1. Click on Form Settings
    1. Set/Change Success Message
      1. Server Provisioning Update in Progress. It should take only a few minutes.
    2. Set Capture Entries
      1. Disable
  • Leave rest as default
  1. Save Form
  2. Final Form should be/look as follows

  1. Signup Form

 

  1. Form Name: Sign Up
  2. Split Screen into 2 columns
  3. Under Layout tab, add the Fields
    1. Email:
      1. Field Type: Email Address
      2. Name: Email
      3. Slug: email_addr
      4. Required: Checked
      5. Save Form

  1. Signup Button
    1. Field Type: Button
    2. Name: Sign Up
    3. Slug: sign_up
    4. Save Form

 

  • Goal
    1. Field Type: Dropdown Select
    2. Name: Goal
    3. Slug: goal
    4. Add the following options (values may be changed to suit your business)
      1. Development
      2. Migration
      3. DIY
      4. Unsure/Don’t Know
    5. Save Form

 

  1. Under Email Tab, disable Mailer
    1. Save Form

 

  1. Under Processors tab, add two Run processors
    1. Validate Email Processor (Use the following settings)

  1. From Name: Enter the Name from which email validations will come from, e.g. Acclaim Cloud Platform
  2. From Email: Enter the email from which email validations will come from, e.g. Acclaim Cloud Platform, e.g. acp@acclaimconsulting.com
  3. Subject: Subject of Email, e.g. “Welcome to Acclaim Cloud Platform.
  4. Validation Email: Default
  5. Verify Notice: This is the confirmation message to user upon registration, e.g. “Please check your email to complete your registration. The link expires after 10 minutes.”
  6. Link Expiry: Set to 10 mins
  7. Message: (words may be changed to suit, e.g: “”

Hi %email_addr%,

 Your journey to a better cloud experience has begun. Please click the link below to verify your email address:

 {validate_link}

 – Many Thanks

 -The Acclaim Cloud Platform Team

 

  1. Save Form
  2. Register Run Processor
    1. Position: Post-Process
    2. Type: Filter
    3. Action / Filter: acp-register
    4. Save Form

  1. Click on Form Settings
    1. Set/Change Success Message (May be customized)
      1. Form has been successfully submitted! Thank you
    2. Set Capture Entries
      1. Disable
  • Leave rest as default
  1. Save Form

 

  1. Set Password Form

 

  1. Form Name: Sign Up
  2. Split Screen into 3 columns, two rows
    1. First Row: start with 2 columns, then divide the left one into two
    2. Second Row: Click the big ‘+’ at the bottom to add row, the split it into two
  3. Under Layout tab, add the Fields
    1. Email:
      1. Field Type: Single Line Text
      2. Name: Password
      3. Slug: password
      4. Required: Checked
      5. Save Form

  1. Set Button (second row)
    1. Field Type: Button
    2. Name: Set
    3. Slug: set
    4. Save Form

  1. Under Email Tab, disable Mailer
    1. Save Form

 

  1. Under Processors tab, add one Run processors
    1. Register Run Processor
      1. Position: Post-Process
      2. Type: Filter
      3. Action / Filter: acp-password-set
      4. Save Form

  1. Click on Form Settings
    1. Set/Change Success Message (May be customized)
      1. Success! Please login with the new password.       
    2. Set Capture Entries
      1. Disable
  • Leave rest as default
  1. Save Form

Server Management Pages

These are simple pages required for Server Management.

Note: Page Names must match exactly, otherwise the plugin will not be able to find them

They include

  1. Sign Up Page
    1. We first need to copy the Sign Up Form Short code under Caldera Forms: Click on ‘Get Shortcode’ then copy it to clipboard.

  1. The Add New Page
    1. Page Title: ACP Sign Up
  2. In WordPress 5.x with Block support, add a new block then search for shortcode

  1. Copy and Paste the signup short code from above

  1. Publish Page

 

  1. Login Page
    1. Create aWordPress page and include the following short code:
      1. Page Title: ACP Login
    2. Also include a link to the Sign Up Page
      1. Sign Upif you don’t already have an account.
    3. Publish Page

  1. Quickstart Help Page
    1. Add New Page
      1. Title: ACP QuickStart
      2. Body:
        1. Wording may be changed to suit
        2. Download VPN Client points to openvpn client download
        3. Download VPN Files link must point to /?acp_f1=vpn on the website with ACP Plugin

 

Here is our 5-Step Quick Start Guide:

Download VPN Client here. Install it.

Download your VPN Files here. Keep them safe as they contain your VPN certificates and keys.

Copy downloaded to VPN’s config folder (e.g. C:\Program Files\OpenVPN\config for Windows)

Connect your VPN (in Windows, it is on the bottom right tray).

Once VPN is connected, you may access your machine using IP using credentials listed next to machine.

Note: Public IPs are not available for non-Pro accounts

Note: A non-Pro Account is is fully functional and may be used for Production or Commercial products or services, but is limited to 4 instances.

Note: in case of any issues, the best way to reach us is emailing support@acclaimconsulting.com. If you need immediate assistance, call us at 617 871 9250.

 

  1. Dashboard Page
    1. We first need to copy the Add Server Form Short code under Caldera Forms: Click on ‘Get Shortcode’ then copy it to clipboard.
    2. Add New Page
      1. Title: Acclaim Cloud Platform Dashboard
    3. Add Link to Quickstart Page (just start typing below Title: Note, you may add a block at and point and use the block handle to move it up and down to desired sequence/position)
      1. Start Here: 5-Step Quick Start Guide
    4. Add Shortcode
      1. acp-pop-table  <– be sure to enclose with […]
    5. Add 2 column, 2 row table (by adding block and searching for ‘table’)
      1. Row 1, Column 1: Add Server
      2. Row 2, Column 1, Short Code for Add Server Caldera Form
    6. Update/Publish Form

  1. Error Page
    1. Title: ACP Error
    2. Content (user your email support account): Please send the following code to support@acclaimconsulting.com
    3. Publish Page

  1. Set Password Page
    1. Title: ACP Password
    2. Content: Best practice: Use a Password Manager to generate a strong password, then copy and paste it here.
    3. Insert the Caldera Form: Set Password (Add block, search for Caldera Forms, and then select Set Password Form we created earlier)
    4. Publish Page

Theme Changes

We use GeneratePress – free version. The final look and feel we desire is as follows:

The following menu items are required. The following steps are based customizing GeneratePress theme, but similar steps will work for other themes.

  1. Edit Theme

  1. Select Menu

  1. Create New Menu

  1. Provide a menu name –
    1. Typically, this will NOT a primary menu as the ACP is designed to fit into a portal or some larger web site. We therefore leave ‘Primary Menu’ unchecked. It is however checked in the demo included with ACP image as there is no
    2. Menu Name: ACP Menu Top Bar

 

  1. Click Add Items
    1. Add Dashboard Page
    2. Add Quickstart Page

    1. Add Custom Link (This will be manipulated in code)
      1. URL: /
      2. Label: Exit

    1. Add to Menu
    2. Publish