Shell Script to add Vhost.Run as root, takes one param: Directory to add, and extra optional param as subdirectory written as /subdirectory where / is folder root.ex: sudo bash newSite.sh [-h | -c | -m ] <nameOfNewsite> [subDirectory DocumentRoot] To run as commands, place files in your /usr/local folder without the .sh extensions, and then just…