diff --git a/README.markdown b/README.markdown index 74fc227..42c8f9c 100644 --- a/README.markdown +++ b/README.markdown @@ -16,7 +16,7 @@ __PLEASE NOTE:__ This script is intended to be a __time saver__. It's not a subs # BETA WARNING -___This script works fine for me (using Ubuntu 8.04, Apache 2.2 and logrotate on Slicehost), but server setups vary greatly. USE THIS SCRIPT AT YOUR OWN RISK!! It mainly just creates some files and restarts Apache, but there is always risk involved with running a script (esp. using sudo). I AM NOT RESPONSIBLE FOR DAMAGE CAUSED BY THIS SCRIPT.___ +___This script works fine for me (Debian Jessie), but server setups vary greatly. USE THIS SCRIPT AT YOUR OWN RISK!! It mainly just creates some files and restarts Apache, but there is always risk involved with running a script (esp. using sudo). I AM NOT RESPONSIBLE FOR DAMAGE CAUSED BY THIS SCRIPT.___ If you're a web server admin, you may very well know more about configuring Apache and logrotate than I do. If you find any flaws with this script or have any recommendations as to how this script can be improved, please fork it and send me a pull request. @@ -47,11 +47,11 @@ This script creates several files owned by root; so, sudo is necessary. By default, these are the directories and files created. This is how I like my web server set up. You may prefer a different structure. The structure can be customized by opening the script and changing the configuration variables near the top of the script. - /var/www/sites/example.com/ - /var/www/sites/example.com/public/ - /var/www/sites/example.com/log/ - /var/www/sites/example.com/log/access.log - /var/www/sites/example.com/log/error.log + /var/www/html/sites/example.com/ + /var/www/html/sites/example.com/public/ + /var/www/html/sites/example.com/log/ + /var/www/html/sites/example.com/log/access.log + /var/www/html/sites/example.com/log/error.log /etc/apache2/sites-available/example.com /etc/apache2/sites-enabled/example.com @@ -74,4 +74,4 @@ It seems that some Apache configurations include a port number (*:80) in the Nam ## Regarding logrotate -This script creates the config files for logrotate, but you still need to make sure you have logrotate installed. \ No newline at end of file +This script creates the config files for logrotate, but you still need to make sure you have logrotate installed. diff --git a/a2mksite b/a2mksite index 865ec31..d7a9ce6 100755 --- a/a2mksite +++ b/a2mksite @@ -33,7 +33,7 @@ APACHE_CONF="$APACHE_CONF_DIR/$DOMAIN.conf" LOGROTATE_CONF="$LOGROTATE_SITES_DIR/$DOMAIN.conf" # This is where the site itself will be created -SITES_DIR="/var/www/sites" +SITES_DIR="/var/www/html/sites" SITE_DIR="$SITES_DIR/$DOMAIN" PUBLIC_DIR="$SITE_DIR/public" LOG_DIR="$SITE_DIR/log" diff --git a/a2rmsite b/a2rmsite index 26079e0..434490d 100755 --- a/a2rmsite +++ b/a2rmsite @@ -27,7 +27,7 @@ APACHE_CONF="$APACHE_CONF_DIR/$DOMAIN.conf" LOGROTATE_CONF="$LOGROTATE_SITES_DIR/$DOMAIN.conf" # This is where the site itself will be created -SITES_DIR="/var/www/sites" +SITES_DIR="/var/www/html/sites" SITE_DIR="$SITES_DIR/$DOMAIN" REMOVED_SITE_DIR="$SITES_DIR/$DOMAIN.removed"