01.12.2012 Views

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

7 Components: the Function Pages - Developers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The last entry for <strong>the</strong> server refers to <strong>the</strong> name of <strong>the</strong> executable<br />

scripts. In TWiki, <strong>the</strong>y have no ending. Thus, Apache must be<br />

shown that files without an ending are to be executed as CGI programs.<br />

This is achieved with <strong>the</strong> following section of httpd.conf:<br />

<br />

AddHandler cgi-script .<br />

<br />

Note <strong>the</strong> path at <strong>the</strong> end! If <strong>the</strong> section<br />

is already present, just enter <strong>the</strong> middle line before<br />

. To make <strong>the</strong> modifications effective, Apache must<br />

be closed and restarted. That will render <strong>the</strong> web server ready for<br />

operation with TWiki.<br />

10.3.3<br />

Copying TWiki<br />

After having sharpened our test environment, we can now work on<br />

installing TWiki itself. The newest version can be found at<br />

http://www.twiki.org. We have included Version 20040902 on <strong>the</strong><br />

CD, located in <strong>the</strong> directory \wikis\twiki. If you have used <strong>the</strong> paths<br />

indicated in this book up to now, you will find a version modified by<br />

us, Version TWiki20040902_win.zip, which will do some of <strong>the</strong><br />

work for you. We assume you will use that version in <strong>the</strong> instructions<br />

to follow. If not, please see Appendix A. Copy <strong>the</strong> packed file<br />

to <strong>the</strong> TWiki installation directory on your hard drive and unpack it.<br />

This is most easily done by switching to <strong>the</strong> corresponding folder in<br />

<strong>the</strong> Cygwin shell with cd /twiki and <strong>the</strong>n executing “unzip”:<br />

unzip TWiki20040902_win.zip<br />

This unpacks <strong>the</strong> program files to <strong>the</strong> corresponding directories.<br />

They are all located in <strong>the</strong> TWiki directory and do not come into<br />

contact with Windows components.<br />

At this point, you should test whe<strong>the</strong>r <strong>the</strong> configuration has been<br />

successful up to now. To do this, use a browser to access <strong>the</strong> URL<br />

http://localhost/twiki/bin/testenv.<br />

Caution: Do not forget to start XAMPP first. If an error occurs<br />

when doing so, or if you cannot access http://localhost, this is most<br />

likely due to a typing error in httpd.conf . Pay special attention to <strong>the</strong><br />

Script endings<br />

Finding<br />

installation<br />

files<br />

10.3 Installation under Windows �<br />

�<br />

�<br />

159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!