This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# This script creates virtual hosts and prepares your mysql DB and drupal directory. | |
# you should put it under /usr/local/bin/ | |
# and run it with sudo newsite | |
# Set the path to your localhost | |
www=/var/www | |
echo "Enter directory name under $www" | |
read sn |