Skip to content

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

License

Notifications You must be signed in to change notification settings

brbrvz/vestacp-addon-domain-2024

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages