Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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
Expand All @@ -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.
This script creates the config files for logrotate, but you still need to make sure you have logrotate installed.
2 changes: 1 addition & 1 deletion a2mksite
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion a2rmsite
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down