brbrvz / vestacp-addon-domain-2024

Add and manage addon domains seamlessly in Vesta CP with PHP script

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VestaCP Addon Domain Script

Introduction

This script automates updating domain configurations in Vesta Control Panel (Vestacp), making it easier to addon domains

Usage

  1. Access your Vestacp using root via SSH

    Ensure you have SSH access to your server with root privileges.

  2. Put this script in the /home/admin/conf/web

    Place the addon.php script in the /home/admin/conf/web directory on your server.

  3. Run this script php addon.php

    Execute the script addon.php using PHP. This script will update the domain configurations based on the settings specified within.

  4. Restart Apache

    Depending on your server's operating system, restart Apache to apply the changes:

    • For CentOS 7:

      sudo systemctl restart httpd.service
    • For Ubuntu:

      sudo systemctl restart apache2

Important Note

Before executing the script, back up all .conf files in the /home/user/conf/web directory. This precautionary measure helps prevent any potential data loss or unexpected outcomes due to misconfigurations.

Feel free to reach out if you encounter any issues or have any questions!

About

Add and manage addon domains seamlessly in Vesta CP with PHP script

License:MIT License


Languages

Language:PHP 100.0%