SVCP: Simple VHost Control Panel

SVCP is a collection of Bash shell scripts to help simplify vhost creation and maintenance on a system that only hosts websites a small number of websites. Nothing for mail, DNS records, etc is done by these scripts. SVCP is designed for a Linux system with access to common manipulation tools (sed, awk) and running Apache.


Current version: 0.2 svcp.tar.gz


Unpack the SVCP archive somewhere (like /opt/svcp) and either add this directory to your path, or place a symlink to the svcp file somewhere in your path.

You will need to edit the svcp file and modify the PREFIX variable to point to the directory containing the rest of the svcp scripts.


Edit svcp/ to reflect your system's virtual hosting setup. In your main httpd.conf file, add:

Include vhost.conf.d/*.conf or your directory of choice, at the end so it will read all the vhost configuration files from that directory.


You can run svcp followed by an action, for example:

# svcp add

which will run the svcp-add script. You can also call each of the scripts independently.

Currently, the available options are: add, del, list, update

Virtual Host Setup:

SVCP creates virtual hosts using the following schema: Username: specified on creation Group: one group common to all vhosts, specified in Document Root: /vhost_base_path/username/vhostname Logs: /vhost_base_path/username/logs


Currently, limited error handling is done, and in particular the creation script doesn't check for much of what exists (the user, directories).