Cloudways ਇੰਟੀਗ੍ਰੇਸ਼ਨ
ਸੰਖੇਪ ਜਾਣਕਾਰੀ
Cloudways ਇੱਕ managed cloud hosting ਪਲੇਟਫਾਰਮ ਹੈ ਜੋ ਤੁਹਾਨੂੰ DigitalOcean, AWS, Google Cloud ਅਤੇ ਹੋਰ ਕਈ cloud providers ਉੱਤੇ WordPress ਸਾਈਟਾਂ ਡਿਪਲੋਏ ਕਰਨ ਦਿੰਦਾ ਹੈ। ਇਹ ਇੰਟੀਗ੍ਰੇਸ਼ਨ Ultimate Multisite ਅਤੇ Cloudways ਵਿਚਕਾਰ ਆਟੋਮੈਟਿਕ domain syncing ਅਤੇ SSL certificate management ਨੂੰ ਸੰਭਵ ਬਣਾਉਂਦਾ ਹੈ।
ਵਿਸ਼ੇਸ਼ਤਾਵਾਂ
- ਆਟੋਮੈਟਿਕ domain syncing
- SSL certificate management
- ਵਾਧੂ domains ਲਈ ਸਹਾਇਤਾ
- SSL certificates ਲਈ DNS validation
ਜ਼ਰੂਰਤਾਂ
ਤੁਹਾਡੀ wp-config.php ਫਾਈਲ ਵਿੱਚ ਹੇਠ ਲਿਖੇ constants ਪਰਿਭਾਸ਼ਿਤ ਹੋਣੇ ਚਾਹੀਦੇ ਹਨ:
define('WU_CLOUDWAYS_EMAIL', 'your_cloudways_email');
define('WU_CLOUDWAYS_API_KEY', 'your_api_key');
define('WU_CLOUDWAYS_SERVER_ID', 'your_server_id');
define('WU_CLOUDWAYS_APP_ID', 'your_app_id');
ਵਿਕਲਪਿਕ ਤੌਰ 'ਤੇ, ਤੁਸੀਂ ਇਹ ਵੀ ਪਰਿਭਾਸ਼ਿਤ ਕਰ ਸਕਦੇ ਹੋ:
define('WU_CLOUDWAYS_EXTRA_DOMAINS', 'comma,separated,list,of,domains');
ਸੈੱਟਅੱਪ ਹਿਦਾਇਤਾਂ
1. ਆਪਣੇ Cloudways API Credentials ਪ੍ਰਾਪਤ ਕਰੋ
- ਆਪਣੇ Cloudways dashboard ਵਿੱਚ ਲੌਗਇਨ ਕਰੋ
- "Account" > "API Keys" 'ਤੇ ਜਾਓ
- ਜੇਕਰ ਤੁਹਾਡੇ ਕੋਲ ਪਹਿਲਾਂ ਤੋਂ API key ਨਹੀਂ ਹੈ ਤਾਂ ਇੱਕ ਬਣਾਓ
- ਆਪਣੀ email ਅਤੇ API key ਕਾਪੀ ਕਰੋ
2. ਆਪਣੀ Server ਅਤੇ Application IDs ਪ੍ਰਾਪਤ ਕਰੋ
- ਆਪਣੇ Cloudways dashboard ਵਿੱਚ, "Servers" 'ਤੇ ਜਾਓ
- ਉਹ server ਚੁਣੋ ਜਿੱਥੇ ਤੁਹਾਡੀ WordPress multisite ਹੋਸਟ ਕੀਤੀ ਹੋਈ ਹੈ
- Server ID URL ਵਿੱਚ ਦਿਖਾਈ ਦਿੰਦੀ ਹੈ:
https://platform.cloudways.com/server/{SERVER_ID} - "Applications" 'ਤੇ ਜਾਓ ਅਤੇ ਆਪਣੀ WordPress application ਚੁਣੋ
- App ID URL ਵਿੱਚ ਦਿਖਾਈ ਦਿੰਦੀ ਹੈ:
https://platform.cloudways.com/server/{SERVER_ID}/application/{APP_ID}
3. wp-config.php ਵਿੱਚ Constants ਸ਼ਾਮਲ ਕਰੋ
ਆਪਣੀ wp-config.php ਫਾਈਲ ਵਿੱਚ ਹੇਠ ਲਿਖੇ constants ਸ਼ਾਮਲ ਕਰੋ:
define('WU_CLOUDWAYS_EMAIL', 'your_cloudways_email');
define('WU_CLOUDWAYS_API_KEY', 'your_api_key');
define('WU_CLOUDWAYS_SERVER_ID', 'your_server_id');
define('WU_CLOUDWAYS_APP_ID', 'your_app_id');
ਜੇਕਰ ਤੁਹਾਡੇ ਕੋਲ ਵਾਧੂ domains ਹਨ ਜੋ ਹਮੇਸ਼ਾ ਸ਼ਾਮਲ ਹੋਣੇ ਚਾਹੀਦੇ ਹਨ:
define('WU_CLOUDWAYS_EXTRA_DOMAINS', 'domain1.com,domain2.com,*.wildcard.com');
4. ਇੰਟੀਗ੍ਰੇਸ਼ਨ ਨੂੰ ਸਮਰੱਥ ਕਰੋ
- ਆਪਣੇ WordPress admin ਵਿੱਚ, Ultimate Multisite > Settings 'ਤੇ ਜਾਓ
- "Domain Mapping" ਟੈਬ 'ਤੇ ਜਾਓ
- "Host Integrations" ਤੱਕ ਹੇਠਾਂ ਸਕ੍ਰੋਲ ਕਰੋ
- Cloudways ਇੰਟੀਗ੍ਰੇਸ਼ਨ ਨੂੰ ਸਮਰੱਥ ਕਰੋ
- "Save Changes" 'ਤੇ ਕਲਿੱਕ ਕਰੋ
ਇਹ ਕਿਵੇਂ ਕੰਮ ਕਰਦਾ ਹੈ
Domain Syncing
ਜਦੋਂ Ultimate Multisite ਵਿੱਚ ਕੋਈ domain ਮੈਪ ਕੀਤਾ ਜਾਂਦਾ ਹੈ:
- ਇੰਟੀਗ੍ਰੇਸ਼ਨ ਸਾਰੇ ਮੌਜੂਦਾ ਮੈਪ ਕੀਤੇ domains ਪ੍ਰਾਪਤ ਕਰਦਾ ਹੈ
- ਇਹ ਨਵਾਂ domain ਸੂਚੀ ਵਿੱਚ ਸ਼ਾਮਲ ਕਰਦਾ ਹੈ (ਜੇਕਰ ਲਾਗੂ ਹੋਵੇ ਤਾਂ www ਵਰਜ਼ਨ ਵੀ)
- ਇਹ ਪੂਰੀ ਸੂਚੀ API ਰਾਹੀਂ Cloudways ਨੂੰ ਭੇਜਦਾ ਹੈ
- Cloudways ਤੁਹਾਡੀ application ਲਈ domain aliases ਅੱਪਡੇਟ ਕਰਦਾ ਹੈ
ਨੋਟ: Cloudways API ਨੂੰ ਹਰ ਵਾਰ domains ਦੀ ਪੂਰੀ ਸੂਚੀ ਭੇਜਣ ਦੀ ਲੋੜ ਹੁੰਦੀ ਹੈ, ਸਿਰਫ਼ ਵੱਖਰੇ domains ਜੋੜਨ ਜਾਂ ਹਟਾਉਣ ਦੀ ਨਹੀਂ।
SSL Certificate Management
Domains ਸਿੰਕ ਹੋਣ ਤੋਂ ਬਾਅਦ:
- ਇੰਟੀਗ੍ਰੇਸ਼ਨ ਜਾਂ ਚ ਕਰਦਾ ਹੈ ਕਿ ਕਿਹੜੇ domains ਕੋਲ ਤੁਹਾਡੇ server ਵੱਲ ਇਸ਼ਾਰਾ ਕਰਦੇ ਵੈਧ DNS records ਹਨ
- ਇਹ ਉਨ੍ਹਾਂ domains ਲਈ Let's Encrypt SSL certificates ਇੰਸਟਾਲ ਕਰਨ ਦੀ ਬੇਨਤੀ Cloudways ਨੂੰ ਭੇਜਦਾ ਹੈ
- Cloudways SSL certificate ਜਾਰੀ ਕਰਨ ਅਤੇ ਇੰਸਟਾਲੇਸ਼ਨ ਨੂੰ ਸੰਭਾਲਦਾ ਹੈ
ਵਾਧੂ Domains
WU_CLOUDWAYS_EXTRA_DOMAINS constant ਤੁਹਾਨੂੰ ਵਾਧੂ domains ਦੱਸਣ ਦੀ ਇਜਾਜ਼ਤ ਦਿੰਦਾ ਹੈ ਜੋ Cloudways ਨਾਲ ਸਿੰਕ ਕਰਦੇ ਸਮੇਂ ਹਮੇਸ਼ਾ ਸ਼ਾਮਲ ਹੋਣੇ ਚਾਹੀਦੇ ਹਨ। ਇਹ ਇਨ੍ਹਾਂ ਲਈ ਲਾਭਦਾਇਕ ਹੈ:
- ਉਹ Domains ਜੋ Ultimate Multisite ਦੁਆਰਾ ਪ੍ਰਬੰਧਿਤ ਨਹੀਂ ਹਨ
- Wildcard domains (ਜਿਵੇਂ ਕਿ,
*.example.com) - Development ਜਾਂ staging domains