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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Now you have to make sure that <strong>the</strong> TWiki directories are edited in<br />

binary mode. This is important, because o<strong>the</strong>rwise additional characters<br />

(especially at <strong>the</strong> ends of lines) could find <strong>the</strong>ir way into <strong>the</strong> files<br />

during <strong>the</strong> version verification. First of all, create <strong>the</strong> required folders:<br />

mkdir /twiki<br />

mkdir /c<br />

mkdir c:/apachefriends/xampp/htdocs/twiki<br />

The last of <strong>the</strong> three directories indicated is <strong>the</strong> one in which <strong>the</strong><br />

TWiki will be installed. It must subsequently be accessible by <strong>the</strong><br />

web server; that is why we have created it right in <strong>the</strong> XAMPP<br />

htdocs folder.<br />

Tip: If you should use paths whose names have spaces (e.g. “My<br />

Files,”) you will have to enter a DOS path here, since spaces cannot<br />

be processed. To do this, enter <strong>the</strong> first six letters, a tilde and a consecutive<br />

number starting at 1 to indicate <strong>the</strong> differentiation. In this<br />

case, it would be myfile~1.<br />

Now, connect <strong>the</strong>se directories with <strong>the</strong>ir counterparts under Windows,<br />

and set <strong>the</strong>m to be accessible in so-called binary mode. Only<br />

this mode enables smooth transfer of data between Cygwin and<br />

Windows:<br />

mount -b -s c:/apachefriends/xampp/ ↵<br />

htdocs/twiki /twiki<br />

mount -b -s c:/ /c<br />

mount -b -c /cygdrive<br />

The last line causes <strong>the</strong> newly connected drives to automatically be<br />

in binary mode. To test whe<strong>the</strong>r this mode is active, switch to <strong>the</strong> directory<br />

twiki, create a file and enter <strong>the</strong> following:<br />

cd /twiki<br />

echo hello world > test<br />

cat -v test<br />

The text hello world should now be displayed. If you find a ^M<br />

or similar character at <strong>the</strong> end of <strong>the</strong> display, <strong>the</strong> switch to binary<br />

mode was not successful. In that case, repeat <strong>the</strong> above steps. You<br />

can delete <strong>the</strong> test file using<br />

Creating<br />

directories<br />

10.3 Installation under Windows �<br />

�<br />

�<br />

157

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

Saved successfully!

Ooh no, something went wrong!