Skip to content

Simple script to help you create new Apache virtual hosts quickly and pain free. With the optional step to also create a mysql database and user for your new virtual host.

Notifications You must be signed in to change notification settings

SilverBull/Newvhost

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not maintained

NEWVHOST SCRIPT

Simple script to help you create new Apache virtual hosts quickly and pain free. With the optional step to also create a mysql database and user for your new virtual host.

Requirements

  • Apache 2.4+
  • MySQL 5+
  • User with sudo access

Installation

  1. Download the [latest release] (https://github.com/SilverBull/Newvhost/releases/latest) (optionaly you can use wget --no-check-certificate --content-disposition https://github.com/SilverBull/Newvhost/releases/latest/download/package.zip.
  2. Extract the files where you want and navigate inside the folder
  3. Edit the first section of newvhost after your needs.
  4. Give the installer script execution permission with chmod +x vhinstaller
  5. Run the installer with sudo ./vhinstaller
  6. Use the now available sudo newvhost command to create your first virtual host.

When finished the installation you can safely delete the files you downloaded.

Uninstallation

  1. Give the uninstaller script execution permission with chmod +x vhuninstaller
  2. Run the uninstaller with sudo ./vhuninstaller
  3. Done

Configuration

Variable Default value Description
tSERVERUSER root User to user for permissions
tLOCATION /var/www/html Location to host all virtual hosts (recommended is the home folder of the user specified above)
tLOCATIONSAFE /var/www/html Safe ocation path, must be same as tLOCATION!
tDBPW null

Special thanks

Special thanks to the original creator

darkwhispering

About

Simple script to help you create new Apache virtual hosts quickly and pain free. With the optional step to also create a mysql database and user for your new virtual host.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%