diff --git a/conf/config.php b/conf/config.php index 766bf8f..40a8d9e 100644 --- a/conf/config.php +++ b/conf/config.php @@ -3,8 +3,8 @@ $WIKI_TITLE = 'LionWiki and txt2tags sample'; // name of the site // SHA1 hash of password. If empty (or commented out), no password is required -$PASSWORD = sha1("demo"); -$Admin["PASSWORD"] = sha1("demo"); +$PASSWORD = sha1("demo1"); +$Admin["PASSWORD"] = sha1("demo1"); //$TEMPLATE = 'templates/dandelion.html'; // presentation template //$TEMPLATE = 'templates/fravashyo.html'; @@ -17,7 +17,7 @@ $TEMPLATE = 'templates/minimaxing.html'; //$TEMPLATE = 'templates/bootstrap.html'; //$TEMPLATE = 'templates/ElectricObsidian/ElectricObsidian.html'; //$TEMPLATE = 'templates/literature.html'; -$TEMPLATE = 'templates/minimal.html'; +//$TEMPLATE = 'templates/minimal.html'; // if true, you need to fill password for reading pages too // before setting to true, read http://lionwiki.0o.cz/index.php?page=UserGuide%3A+How+to+use+PROTECTED_READ diff --git a/scripts/install b/scripts/install index d7b6b44..7948999 100644 --- a/scripts/install +++ b/scripts/install @@ -259,6 +259,16 @@ fi # Set permissions to app files chown -R root: $final_path +# Wiki needs to write inside these folders. Make "Wiki" owner +chown -R $app:root $final_path/{var} + +# Allow access to public assets like style sheets +find $final_path/templates -type f -print0 | xargs -0 chmod 0644 +find $final_path/templates -type d -print0 | xargs -0 chmod 0755 +# Using "find" instead of "chmod -R 755" so files does not become executable too +# chmod : -rwxr-xr-x 1 root root 241 May 3 08:36 index.html => BAD +# find : -rw-r--r-- 1 1001 1002 241 May 3 08:36 index.html => GOOD + #================================================= # SETUP LOGROTATE #=================================================