Create a site
Add a WordPress, Magento 2 or Laravel site to a CoreCluster.
Before you start
- Your organisation has a CoreCluster. Anyone in the organisation can create a site on it.
- You know the site's domain. Its DNS is not touched until you attach the domain.
- The platform and the size cannot be changed once the site exists.
Create the site
Open the cluster
Go to Managed Clusters, open the cluster and choose Create site.
Choose the platform
Choose a Platform. Under Content, choose Fresh install for a working site, or Empty site to upload your own files, then choose Next: Name & size.
Enter the domain
Enter the site's Domain in lower case, without
https://orwww. Choose the PHP version, the Database version and a Size, then choose Next: Review.Fits beside a size means the cluster has room for it.
Review and create
Check the list under Review, then choose Create site.
Save the admin login
The site's page opens and its Provisioning card follows the work: see Setup progress. After a fresh install, choose Show login details and save the admin login, which is shown once.
A fresh Laravel application has no admin user.
The site is on the cluster's Sites tab and in Managed Websites. It answers on its platform address, which search engines are told not to index, until you attach its domain.
No CoreCluster? In Managed Websites, choose Create, then CoreStack.
Automate this
Creates a site with its environments, on a Corefinity platform in a region (with a package) or in one of your CoreClusters (sized by tier).
curl -X POST https://manage.corefinity.com/api/corestack/sites \
-H "Authorization: Bearer $COREFINITY_TOKEN" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"environments": [],
"package": "cs4",
"placement": {
"kind": "platform",
"region": "uk"
},
"site": {
"content": "fresh",
"domain": "harbourandfinch.example.net",
"http_auth": true,
"php_version": "8.3",
"platform": "wordpress"
}
}'Your assistant calls corestack_site_create.
{
"name": "corestack_site_create",
"arguments": {
"region": "uk",
"package": "cs4",
"site": {
"platform": "wordpress",
"domain": "example.co.uk",
"content": "fresh"
}
}
}