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.

chmod 666 */*<br />

They also must be set for <strong>the</strong> directories <strong>the</strong>mselves, with <strong>the</strong> following<br />

command in <strong>the</strong> twiki directory:<br />

chmod 666 data pub<br />

10.1.4<br />

Adapting <strong>the</strong> Library Path<br />

Edit <strong>the</strong> path entry in <strong>the</strong> file twiki/bin/setlib.cfg so that it links to<br />

your twiki/lib directory:<br />

setLibPath = "/opt/lampp/htdocs/twiki/lib";<br />

Now you can perform a preliminary trial run of your configuration.<br />

To do this, in your browser, open <strong>the</strong> URL<br />

http://localhost/twiki/bin/testenv. If you <strong>the</strong>n see a text file beginning<br />

with a shebang line, that is, with #!, your Perl settings are incorrect.<br />

O<strong>the</strong>rwise, you will see an HTML page that starts with <strong>the</strong> heading<br />

“Test <strong>the</strong> environment for TWiki.”<br />

This concludes <strong>the</strong> Linux-specific instructions; you can now proceed<br />

with <strong>the</strong> installation in Chapter 1.4.<br />

10.2<br />

TWiki without an Admin-Account<br />

If you intend to run TWiki via a web host, you naturally will not<br />

have access to <strong>the</strong> server configurations. In addition, several web<br />

hosts do not offer SSH access, so that <strong>the</strong> files may not even be able<br />

to be edited directly on <strong>the</strong> server. Never<strong>the</strong>less, you do not have to<br />

give up working with wikis. However, one important prerequisite is<br />

that your web host offers Perl and allows you to use your own<br />

scripts. In principle, we proceed exactly as if we were installing a local<br />

copy, except that we use <strong>the</strong> parameters of <strong>the</strong> web host. We assume<br />

that you are familiar with <strong>the</strong> local installation of TWiki for<br />

your operating system.<br />

You first need a variety of information about your web host.<br />

� Bin directory. In which directory are you permitted to execute<br />

scripts? Usually, you will find a directory called bin or cgi-bin,<br />

if you log onto your account via FTP.<br />

Prerequisites<br />

Required<br />

information<br />

10.2 TWiki without an Admin-Account �<br />

�<br />

�<br />

151

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

Saved successfully!

Ooh no, something went wrong!