1
0
Derivar 0
Ir para o ficheiro
Simon Vieille 35e4f0146a add PHP 8.1 2021-12-02 16:38:51 +01:00
bin add http2 2021-11-29 12:11:58 +01:00
etc add PHP 8.1 2021-12-02 16:38:51 +01:00
share/bin add command params 2021-02-21 16:17:45 +01:00
src fix indentation 2021-11-29 12:13:12 +01:00
.gitignore add documentation 2019-08-01 10:32:58 +02:00
Makefile fix build of crypt 2020-12-05 13:23:44 +01:00
README.md refactoring and documentation 2021-11-29 11:50:13 +01:00

README.md

VHOST-MANAGER

vhost-manager helps you to create apache2 vhosts.

Requirements

  • PHP
  • GCC
  • whiptail
  • wget
  • make

Installation

$ sudo apt install gcc build-essential whiptail wget make
$ sudo apt install <php stuff>
$ git clone https://gitnet.fr/deblan/vhost-manager.git
$ cd vhost-manager
$ make

Configuration

$ cp etc/config.dist etc/config
$ vim etc/config

Usage

USAGE:
  ./bin/vhost-add [options]

OPTIONS:
  -i                 Enable script interactivity
                     The script is interactive when no argument is given
  -d                 The domain name
  -a                 Aliase(s)
  -m value           Enable "http" or "https"
  -r                 Force redirection of http to https
  -p value           Enable PHP with the given version (eg: 8.0)
  -u value           Username in the system
  -h                 Show this help

Example:

$ sudo vhost-add
$ sudo vhost-add -m http -m https -r -d example.com -a www.example.com -p 8.0 -u example -i