projects
/
matthijs
/
servers
/
drsnuggles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d40af6
)
addsite: Add some comments.
author
Matthijs Kooijman
<matthijs@stdin.nl>
Fri, 24 Apr 2009 19:35:38 +0000
(21:35 +0200)
committer
Matthijs Kooijman
<matthijs@stdin.nl>
Fri, 24 Apr 2009 19:35:38 +0000
(21:35 +0200)
usr/local/bin/addsite
patch
|
blob
|
history
diff --git
a/usr/local/bin/addsite
b/usr/local/bin/addsite
index 2d8d235aa31d2638b18623e881e7c9cf4f2fcc90..dcae1079667bd8661963d0aa051fcba71d47b091 100755
(executable)
--- a/
usr/local/bin/addsite
+++ b/
usr/local/bin/addsite
@@
-118,10
+118,12
@@
sudo setfacl -m u:$SCRIPT_USER:rwX "$DIR/logs" "$DIR/data"
sudo sh -c "chown -R $SCRIPT_USER \"$DIR\"/logs/php.log* \"$DIR\"/logs/wipi.log*"
sudo sh -c "chown -R $HTTPD_USER \"$DIR\"/logs/access.log*"
sudo sh -c "chown -R $SCRIPT_USER \"$DIR\"/logs/php.log* \"$DIR\"/logs/wipi.log*"
sudo sh -c "chown -R $HTTPD_USER \"$DIR\"/logs/access.log*"
-# Now, set the error_log setting in php.ini
+# Now, set the error_log setting in php.ini. This ensures each domein will have
+# a separate logfile for errors, since lighttpd only supports a single error
+# log (When error_log is not set, error messages will go to lighttpd's log
+# automatically).
echo Updating `basename $PHP_CONFIG`
echo Updating `basename $PHP_CONFIG`
-
sudo sed -i "s#^error_log *=.*#error_log = $DIR/$PHP_ERRORLOG#" "$DIR/$PHP_CONFIG"
sudo update-php.ini
sudo sed -i "s#^error_log *=.*#error_log = $DIR/$PHP_ERRORLOG#" "$DIR/$PHP_CONFIG"
sudo update-php.ini