ispmanager 6 lite, pro, host

Site cloning

Ispmanager offers quick cloning of any website, allowing you to create a complete working copy in minutes. Cloning is convenient for testing changes, creating a staging environment, or launching a new version of a project without risking the main website.

Website cloning requirements

Before cloning a site, ensure that the future website owner is allowed to use the same handler (PHP, Python, or Node.js) as the original website.

Website cloning process

Ispmanager checks the settings of the future website owner and the specified domain before initiating cloning. If the settings don't meet the requirements or the domain is specified incorrectly, the process will fail and an error will be displayed. If all requirements are met, cloning will begin automatically.

The following entities will be cloned:

Entities

Will be copied

Website settings

Website PHP settings

Website error pages

Website redirects

Site access restrictions

Webste files

Details

The original site's name will remain unchanged in the clone site's files. If necessary, change it manually.

Website database

Details

For the database of the clone site, ispmanager will create a new name and new authorization data, while the database contents will remain unchanged. You will need to manually replace the database connection data in the clone site's files.

For WordPress sites, ispmanager will automatically replace the database connection data.

Website aliases that are subdomains

Details

When cloning the site example.com with the aliases one.example.com and test.com, the resulting clone will have an arbitrary name, for example, clone.com with the alias one.clone.com.

The alias test.com will not be copied to avoid overlapping with the aliases of other sites.

SSL certificate

Port

Details

If a port was assigned to the site, the clone site will be assigned the next free port.

Creating a website clone

  1. Log in to your ispmanager account.
  2. Go to the Sites section.
  3. Select an existing site.
  4. Click .
  5. In the context menu, click Clone site.
  6. Fill out the form:
    • Domain name — a unique name for the site on the internet. The maximum allowed length: 255 characters.
    • Owner — the user-owner the site. This field is not accessible to accounts of the user level.
  7. Click Clone.

The site cloning process will begin. If successful, a notification will appear stating " Cloning of SITE_NAME site completed successfully."

Cloning log

Cloning is recorded in the main log of the ispmanager panel: /usr/local/mgr5/var/ispmgr.log.

The log registers two events:

  • the start of cloning operation with an action action 'SITE_CLONE'.

    Example of cloning operation start
    Dec 18 07:55:31 [899205:527] action EXTINFO Get message for error in action 'example-clone.com' for level 30
  • the cloning operation with the action Clone site 'ORIGINAL_SITE' to 'SITE_CLONE'.

    Example of cloning operation
    Dec 18 07:55:31 [899205:527] Clone site 'example.com' to 'example-clone.com' for level 30.

If necessary, a record of the following type appears: ERROR Error: Type: ERROR_CATEGORY Object: ENTITY.
Main error categories for Type:

  • dbms — failed to create or copy data resources
  • skipped — object not found. For example, a domain
  • value — invalid value. For example, the handler is unavailable to the client
  • cert_used — SSL certificate is busy or unavailable
  • access — insufficient rights to perform the action
  • diskquota — insufficient disk space
Error example
The handler is not available to the user
Dec 18 07:55:31 [899205:527] ERROR Error: Type: 'value' Object: 'site_handler' for level 30.