Add a virtual host on Ubuntu
Shell PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
add_host.sh
phpinfo.php
templateHost

README

for now it works in Ubuntu only and uses bash.
I'm going to update it to work with Arch Linux and maybe use php.

to start the script run it in terminal
input virtual host name
input virtual host DocumentRoot. input full path
if there is no directory, the script creates one with index.php inside. index.php contains phpinfo()