Runcloud Integration - Ultimate-Multisite/ultimate-multisite GitHub Wiki
RunCloud Integration
Overview
RunCloud is a cloud-based server management platform that allows you to easily deploy and manage web applications on your own cloud servers. This integration enables automatic domain syncing and SSL certificate management between Ultimate Multisite and RunCloud.
Features
- Automatic domain syncing
- SSL certificate management
- Domain removal when mappings are deleted
UPDATE
Runcloud is discontining V2 of the API and everyone must start using V3 which is only supported by Ultimate Multisite 2.4.9 and you'll need to get a API TOKEN. You can get your API Token inside Runcloud Workspace > Settings > API Management.
Requirements
The following constants must be defined in your wp-config.php file:
define('WU_RUNCLOUD_API_TOKEN', 'your_api_token');
define('WU_RUNCLOUD_SERVER_ID', 'your_server_id');
define('WU_RUNCLOUD_APP_ID', 'your_app_id');
Setup Instructions
1. Get Your RunCloud API Credentials
- Log in to your RunCloud dashboard
- Go to Wordspace
- Select Settings
- Click API Management
- Generate API Token
2. Get Your Server and App IDs
- In your RunCloud dashboard, go to "Servers"
- Select the server where your WordPress multisite is hosted
- The Server ID is visible in the URL:
https://manage.runcloud.io/servers/{SERVER_ID} - Go to "Web Applications" and select your WordPress application
- The App ID is visible in the URL:
https://manage.runcloud.io/servers/{SERVER_ID}/apps/{APP_ID}
3. Add Constants to wp-config.php
Add the following constants to your wp-config.php file:
define('WU_RUNCLOUD_API_TOKEN', 'your_api_token');
define('WU_RUNCLOUD_SERVER_ID', 'your_server_id');
define('WU_RUNCLOUD_APP_ID', 'your_app_id');
4. Enable the Integration
- In your WordPress admin, go to Ultimate Multisite > Settings
- Navigate to the "Domain Mapping" tab
- Scroll down to "Host Integrations"
- Enable the RunCloud integration
- Click "Save Changes"
How It Works
When a domain is mapped in Ultimate Multisite:
- The integration sends a request to RunCloud's API to add the domain to your application
- If the domain is successfully added, the integration will also redeploy SSL certificates
- When a domain mapping is removed, the integration will remove the domain from RunCloud
For subdomain installations, the integration will automatically handle the creation of subdomains in RunCloud when new sites are added to your network.
Troubleshooting
API Connection Issues
- Verify that your API credentials are correct
- Check that your server and app IDs are correct
- Ensure that your RunCloud account has the necessary permissions
SSL Certificate Issues
- RunCloud may take some time to issue SSL certificates
- Verify that your domains are properly pointing to your server's IP address
- Check the RunCloud SSL settings for your application
Domain Not Added
- Check the Ultimate Multisite logs for any error messages
- Verify that the domain is not already added to RunCloud
- Ensure that your RunCloud plan supports multiple domains