PHP 8.3.31
Preview: physical_hosting_created Size: 774 B
/opt/cloudlinux/venv/lib64/python3.11/site-packages/clcommon/public_hooks/bundle/plesk/bin/physical_hosting_created

#!/opt/cloudlinux/venv/bin/python3 -bb
# -*- coding: utf-8 -*-

# Copyright © Cloud Linux GmbH & Cloud Linux Software, Inc 2010-2018 All Rights Reserved
#
# Licensed under CLOUD LINUX LICENSE AGREEMENT
# http://cloudlinux.com/docs/LICENSE.TXT
#
"""
https://docs.plesk.com/en-US/onyx/administrator-guide
/server-administration/event-parameters-passed-by-event-handlers.67897/
#physical-hosting-created
"""
import os

from clcommon.public_hooks.bundle.plesk.lib import physical_hosting_created


def main():
    new_system_user = os.environ.get('NEW_SYSTEM_USER')
    # domain creation is also can be handled here
    new_domain_name = os.environ['NEW_DOMAIN_NAME']
    exit(physical_hosting_created(new_system_user, new_domain_name))


if __name__ == '__main__':
    main()

Directory Contents

Dirs: 0 × Files: 5

Name Size Perms Modified Actions
709 B lrwxr-xr-x 2026-06-03 13:38:12
Edit Download
774 B lrwxr-xr-x 2026-06-03 13:38:12
Edit Download
790 B lrwxr-xr-x 2026-06-03 13:38:12
Edit Download
945 B lrwxr-xr-x 2026-06-03 13:38:12
Edit Download
577 B lrwxr-xr-x 2026-06-03 13:38:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).