From b20532e5b2f42be5e6b247839fedee2241670544 Mon Sep 17 00:00:00 2001 From: xm3n1 Date: Mon, 25 Jan 2016 07:29:12 +0100 Subject: [PATCH 1/4] Fixed Document Root for new Apache Version Document Root fixed to /var/www/html --- a2mksite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 5969d1c7961ddb2a81c23477c4b48936daa9cf50 Mon Sep 17 00:00:00 2001 From: xm3n1 Date: Mon, 25 Jan 2016 07:52:48 +0100 Subject: [PATCH 2/4] Update Readme Markdown Update Readme Markdown --- README.markdown | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.markdown b/README.markdown index 74fc227..7b8500d 100644 --- a/README.markdown +++ b/README.markdown @@ -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. From 34688341d21e12c186343d6123eb2fe27e7c70f8 Mon Sep 17 00:00:00 2001 From: xm3n1 Date: Thu, 10 Mar 2016 10:17:04 +0100 Subject: [PATCH 3/4] Update README.markdown --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 7b8500d..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. From a1e6f3aeaccc443cf35f65d362c0872d5b5c914d Mon Sep 17 00:00:00 2001 From: xm3n1 Date: Thu, 31 Mar 2016 10:22:30 +0200 Subject: [PATCH 4/4] Update a2rmsite fixed Document root for new Apache Version --- a2rmsite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"