%USERSWEB% web can be kept clean and used just for users and TWiki groups. For example, you could create an "Intranet" web if TWiki is primarily used as an intranet, or a "KB" web if used as a knowledge base, etc.
If you have a dedicated web as a starting point you obviously want users start at the home of that web. This can be configured in two places: 1. Redirect from site home to web home, and 2. Set the wiki logo URL.
__1. Redirect from site home to web home__
When a user enters the domain name of your TWiki she expects to see the homepage. You can do that either with an Apache rewrite rule or an HTML meta redirect to redirect from =/= to =%SCRIPTURLPATH{view}%/Intranet/WebHome=. Here is an example =index.html= containing an HTML meta redirect you can use: Customize it and put it in your HTML document root on your TWiki sever:
Redirecting to Intranet home...
__2. Set the wiki logo URL__
When a user clicks on the logo in the upper left or on the "Home" link in the top-bar she expects to navigate to the new homepage. You can do that by defining and customizing the following setting in [[%USERSWEB%.TWikiPreferences]] as described in the [[#SetPreferences][Set TWiki Preferences]] section:
* URL of the logo:
* Set WIKILOGOURL = %SCRIPTURLPATH{view}%/Intranet/WebHome
#CustomizeLogo
---++ Customize the Site Logo
Create a logo with a transparent background and a maximum height of 55 pixels. Attach it to [[%USERSWEB%.TWikiPreferences]], raw-edit that topic, and set the following bullet, assuming the name of the logo is =my-logo-100x50.png=:
* Logo of this TWiki installation:
* Set WIKILOGOIMG = %PUBURLPATH%/%USERSWEB%/TWikiPreferences/my-logo-100x50.png
#CustomizeTheLook
---++ Customize the Look of Your TWiki!
The real power of TWiki lies in its flexibility to be customized to meet your needs. You can easily change the look of the default skins (called TopMenuSkin and PatternSkin) by reading the PatternSkinCustomization.
At the official TWiki website you can find more resources. A good place to start exploring what's possible is TWiki:TWiki.TWikiAdminCookBook which offers tips and tricks for customizing your TWiki site. Many of these are appropriate to implement immediately after installing TWiki and before adding content so now's a good time to look at these.
#CustomizeSpecialPages
---++ Customize Special Pages
Some pages are meant to be customized after choice of authentication. If you do not use the internal TWiki password manager the topics that contains the features for changing and resetting passwords and changing the email address should be changed to a note describing how to perform these tasks in your organization. The topics are:
* ChangePassword
* ResetPassword
* ChangeEmailAddress
#InstallPlugins
---++ Install Plugins
TWiki:Plugins.WebHome is an extensive library of plugins for TWiki, that enhance functionality in a huge number of ways. A few plugins are pre-installed in the TWiki distribution. For more information on these, see InstalledPlugins.
You activate installed plugin in the _Plugins_ section of =configure=. In this section you also find a _Find More Extensions_ button which opens an application which can install additional plugins from the TWiki.org website. If you are behind a firewall or your server has no access to the Internet it is also possible to install plugins manually. Manual installation instructions for the plugins can be found in the plugin topics on TWiki.org. Additional documentation on TWiki plugins can be found at TWiki:TWiki.TWikiPluginsSupplement.
Some plugins require that you define their settings in =configure=. You fill find these under the _Extensions_ section of configure.
#WysiwygAndRawEdit
---++ WYSIWYG And Raw Edit
From TWiki release 4.2.0 on the WYSIWYG editor has been replaced by a much better and more powerful editor and it was decided that WYSIWYG would be the default edit mode. An Edit Raw link is available for those that have a need or preference for this mode.
However you may prefer to have the same user interface as in TWiki 4.1 where _Edit_ was the raw text editor and you had a WYSIWYG button. This is possible by adding the following setting in the [[%USERSWEB%.TWikiPreferences]], !WebPreferences or user hompages:
* Set EDITMETHOD = raw
#WebCopyright
---++ Copyright, License and Classification Statements
At the bottom of each topic you will find a default copyright message saying "Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors." The WEBCOPYRIGHT setting defines this. This is often not adequate.
* If your TWiki is used in a commercial application without public access you should replace this by your normal copyright notice. You should also consider adding classifications (e.g. For Internal Use Only) so people do not have to add this manually to every new topic.
* If your TWiki is public with public access you need to decide which copyright and license the contributions should be covered by. For open source type applications licenses such as the GNU Free Documentation License, FreeBSD Documentation License, and Creative Commons license are possible licenses to consider. Remember that once people have started contributing it is difficult and not correct to change or impose licenses on existing contributions.
You change the copy right statement globally by taking these steps.
* Copy the setting WEBCOPYRIGHT from [[%SYSTEMWEB%.TWikiPreferences]] to [[%USERSWEB%.TWikiPreferences]] and alter the copied text to your need.
* You can create a unique message for each web by adding the WEBCOPYRIGHT setting to !WebPreferences in each web. E.g. adding a confidencial classification to a very restricted web.
* The WEBCOPYRIGHT in [[%SYSTEMWEB%.WebPreferences]] covers the documentation that comes with TWiki and is covered by the original TWiki Copyright and GPL License. You will normally leave this unchanged.
#TroubleShooting
---++ Troubleshooting
The first step is to re-run the =configure= script and make sure you have resolved all errors, and are satisfied that you understand any warnings.
If, by any chance, you forget the "admin" password, the same used in "configure" script, then please login to the server. Delete ==$TWiki::cfg{Password}= ' ...';==. Set the new password using "configure" script.
Failing that, please check TWiki:TWiki.InstallingTWiki on TWiki.org, the supplemental documentation that help you install TWiki on different platforms, environments and web hosting sites. For example:
* For Unix or Linux, check TWiki:Codev.TWikiOnUnix and TWiki:Codev.TWikiOnLinux.
* For Windows, check the TWiki:Codev.WindowsInstallCookbook.
* For !MacOS X, check TWiki:Codev.TWikiOnMacOSX.
It is also advisable to review TWiki:Codev/KnownIssuesOfTWiki06x01.
If you need help, ask a question in the TWiki:Support web or on TWiki:Codev/TWikiIRC (irc.freenode.net, channel #twiki)
---++ Appendices
#SystemRequirements
---++ TWiki System Requirements
Low client and server base requirements are core features that keep TWiki widely deployable, particularly across a range of browser platforms and versions. Many [[TWiki:Plugins.PluginPackage][Plugins]] and [[TWiki:Plugins.ContribPackage][contrib modules]] exist which enhance and expand TWiki's capabilities; they may have additional requirements.
%INCLUDE{ "TWikiSystemRequirements" section="requirements" headingoffset="1" }%
#NonRootInstallNotes
---++ Notes on Installing TWiki on Non-Root Account
The following supplemental notes to the [[#StandardInstallation][Basic Installation]] instructions apply to installing TWiki on a system where you don't have Unix/Linux root (administrator) privileges, for example, on a hosted Web account or an intranet server administered by someone else.
Referring to the [[#StandardInstallation][Basic Installation]] steps presented above:
* *Step 2:* If you cannot unpack the TWiki distribution directly in your installation directory, you can unpack the distribution on your local PC and then manually create the directory structure on your host server and upload the files as follows:
* Using the table below, create a directory structure on your host server
* Upload the TWiki files by FTP (transfer as text except for the image files in =pub= directory.)
* __Note:__ Don't worry if you are not able to put the twiki/lib directory at the same level as the =twiki/bin= directory (e.g. because CGI bin directories can't be under your home directory and you don't have root access). You can create this directory elsewhere and configure the =twiki/bin/LocalLib.cfg= file (done in Step 2).
| *TWiki dir:* | *What it is:* | *Where to copy:* | *Example:* |
| =twiki/= | TWiki package | TWiki root directory, should be secure from public access | =/home/smith/twiki/= |
| =twiki/bin/= | CGI bin | move to script-enabled dirctory | =/home/smith/cgi/twiki/= |
| =twiki/lib/= | library files | leave in TWiki root | =/home/smith/twiki/lib/= |
| =twiki/locale/= | language files | leave in TWiki root | =/home/smith/twiki/locale/= |
| =twiki/pub/= | public files | move to HTML document enabled directory | =/home/smith/html/twiki-pub/= |
| =twiki/data/= | topic data | leave in TWiki root | =/home/smith/twiki/data/= |
| =twiki/templates/= | web templates | leave in TWiki root | =/home/smith/twiki/templates/= |
| =twiki/tools/= | TWiki utlilities | leave in TWiki root | =/home/smith/twiki/tools/= |
| =twiki/working/= | Temporary and internal files | leave in TWiki root | =/home/smith/twiki/working/= |
* *Step 3:* Files in the pub directory must be readable as a url. This means that directory permissions should be set to =755= (or =775= ) and file permissions should be set to =644= (or =664=). If you can run a =chmod= command, you can accomplish this in two quick steps by running these commands from the root direct:
* =chmod -R 755 pub=
* =chmod 644 `find pub -type f -print`=
* In addition, you should create a =.htaccess= file in the pub directory, using the template included in the distribution entitled =misc/pub-htaccess.txt=.
* Note: This setup does not provide for absolute security for TWiki attachments. For more information, see TWiki:Codev.SecuringYourTWiki.
* *Step 6:* In order to run the configure script, create a file called =.htaccess= in the bin directory that includes the following single line: =SetHandler cgi-script= . This informs the server to treat all the perl scripts in the bin directory as scripts.
For additional information about installing TWiki on a hosted accounts, see TWiki:TWiki.InstallingTWiki#WebHostingSites
#WithoutConfigure
---++ Installing Manually Without Configure
It is highly recommended to use run configure from the browser when setting up TWiki. Configure does a lot of the hard work for you.
But there may be instances where you do not want to use configure or where configure simply won't run because of a missing dependency.
The manual steps you have to take are:
* Copy the file =lib/TWiki.spec= to =lib/LocalSite.cfg=
* Remove the comment # in front of =$TWiki::cfg{DefaultUrlHost}=, =$TWiki::cfg{ScriptUrlPath}=, =$TWiki::cfg{PubUrlPath}=, =$TWiki::cfg{PubDir}=, =$TWiki::cfg{TemplateDir}=, =$TWiki::cfg{DataDir}=, =$TWiki::cfg{LocalesDir}=, and =$TWiki::cfg{OS}= and make sure these settings have the correct values.
* Make sure to define at least these settings: =$TWiki::cfg{LoginManager}=, =$TWiki::cfg{WebMasterEmail}=, =$TWiki::cfg{SMTP}{MAILHOST}=, =$TWiki::cfg{SMTP}{SENDERHOST}=.
%STOPINCLUDE%
__Related Topics:__ AdminDocumentationCategory, TWiki:TWiki.InstallingTWiki, TWikiUpgradeGuide
__Contributors:__ TWiki:Main.PeterThoeny, TWiki:Main.MikeMannix, TWiki:Main.RichardDonkin, TWiki:Main.KennethLavrsen, TWiki:Main.CrawfordCurrie, TWiki:Main.MartinGregory