|
Services |
Wiki setupPMwiki Documentation wikicd /var/www/html wget -O pmwiki-2.2.107.tar.gz http://www.pmwiki.org/pub/pmwiki/pmwiki-latest.tgz tar xzvf pmwiki-2.2.107.tar.gz ln -s pmwiki-2.2.107 wiki cd wiki/ ln -s pmwiki.php index.php mkdir wiki.d uploads chown -R root: . chgrp apache wiki.d uploads chmod g+sw wiki.d uploads cp docs/sample-config.php local/config.php vim local/config.php --- local/.old/config.php.20180419.011607 2018-04-19 01:15:32.333213678 -0300
+++ local/config.php 2018-04-19 01:22:23.277998670 -0300
@@ -6,7 +6,7 @@
## to PmWiki.
## $WikiTitle is the name that appears in the browser's title bar.
-$WikiTitle = 'PmWiki';
+$WikiTitle = 'Taggart "SHINY"/GOLD Wiki';
## $ScriptUrl is your preferred URL for accessing wiki pages
## $PubDirUrl is the URL for the pub directory.
@@ -19,7 +19,7 @@
## it depends on your webserver and PHP configuration. You might also
## want to check http://www.pmwiki.org/wiki/Cookbook/CleanUrls more
## details about this setting and other ways to create nicer-looking urls.
-# $EnablePathInfo = 1;
+$EnablePathInfo = 1;
## $PageLogoUrl is the URL for a logo image -- you can change this
## to your own logo if you wish.
@@ -35,7 +35,11 @@
## the "attr" passwords for the PmWiki and Main groups are locked, so
## an admin password is a good way to unlock those. See PmWiki.Passwords
## and PmWiki.PasswordsAdmin.
-# $DefaultPasswords['admin'] = pmcrypt('secret');
+$DefaultPasswords['admin'] = pmcrypt('xxxxxxx');
+$DefaultPasswords['edit'] = pmcrypt('xxxxxxx');
+
+date_default_timezone_set('America/Halifax'); # if you run PHP 5.1 or newer
+$TimeFmt = '%B %d, %Y, at %I:%M %p %Z';
## Unicode (UTF-8) allows the display of all languages and all alphabets.
## Highly recommended for new wikis.
@@ -49,11 +53,11 @@
## PmWiki comes with graphical user interface buttons for editing;
## to enable these buttons, set $EnableGUIButtons to 1.
-# $EnableGUIButtons = 1;
+$EnableGUIButtons = 1;
## To enable markup syntax from the Creole common wiki markup language
## (http://www.wikicreole.org/), include it here:
-# include_once("scripts/creole.php");
+include_once("scripts/creole.php");
## Some sites may want leading spaces on markup lines to indicate
## "preformatted text blocks", set $EnableWSPre=1 if you want to do
@@ -67,9 +71,9 @@
## You'll also need to set a default upload password, or else set
## passwords on individual groups and pages. For more information
## see PmWiki.UploadsAdmin.
-# $EnableUpload = 1;
+$EnableUpload = 1;
# $UploadPermAdd = 0;
-# $DefaultPasswords['upload'] = pmcrypt('secret');
+$DefaultPasswords['upload'] = pmcrypt('xxxxxxx');
## Setting $EnableDiag turns on the ?action=diag and ?action=phpinfo
## actions, which often helps others to remotely troubleshoot
Apache httpd config
# Use mod_rewrite to enable "Clean URLs" for a PmWiki installation. RewriteEngine On # Define the rewrite base. RewriteBase /wiki # Send requests without parameters to pmwiki.php. RewriteRule ^$ pmwiki.php [L] # Send requests for index.php to pmwiki.php. RewriteRule ^index\.php$ pmwiki.php [L] # Send requests to pmwiki.php, appending the query string part. RewriteRule ^([A-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1 [QSA,L]
<Directory "/var/www/html/wiki">
AllowOverride AuthConfig FileInfo
# Options FileInfo AuthConfig Limit
Options FollowSymLinks
# None All Indexes Includes FollowSymLinks
# SymLinksifOwnerMatch ExecCGI MultiViews
</Directory>
|