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.

Test <strong>the</strong><br />

environment<br />

Copy files<br />

38<br />

��<br />

��<br />

��<br />

The files of your own homepage can be stored in <strong>the</strong> directory<br />

xampp/htdocs under Windows and /opt/lampp/htdocs under Linux.<br />

This is <strong>the</strong> standard directory that Apache accesses when reacting to<br />

a query. In order to test this, create <strong>the</strong> subdirectory<br />

xampp/htdocs/test or lampp/htdocs/test 2 . Now, open <strong>the</strong> text editor<br />

and save <strong>the</strong> following HTML code as index.php in <strong>the</strong> test folder.<br />

<br />

<br />

This is a test<br />

<br />

<br />

Your own pages are displayed here<br />

<br />

<br />

<br />

If you now access <strong>the</strong> address http://localhost/test, <strong>the</strong> file you have<br />

just created should be displayed. If <strong>the</strong> PHP output is also visible,<br />

<strong>the</strong>n <strong>the</strong> installation has been successful.<br />

Caution: Sometimes a file may be saved with an incorrect extension<br />

– e.g. with .htm instead of .php or vice versa. Under Windows, when<br />

attempting to rename <strong>the</strong> file, <strong>the</strong> error often occurs that <strong>the</strong> operating<br />

system automatically adds <strong>the</strong> old program extension. You can<br />

eliminate this in Windows XP, for example, by going to CONTROL<br />

PANEL � TOOLS � FOLDER OPTIONS � VIEW and deactivating<br />

(unchecking) <strong>the</strong> option “Hide extensions for known file types”.<br />

2.2<br />

Installing MediaWiki<br />

After you have installed a test environment on your computer, you<br />

can now install MediaWiki. We have included Version 1.4 on <strong>the</strong><br />

supplementary CD in <strong>the</strong> directory /wikis/mediawiki. Alternatively,<br />

you can also find <strong>the</strong> current version at http://www.mediawiki.org.<br />

Tip: When downloading, in some browsers (e.g. Mozilla), <strong>the</strong> file<br />

extension may be renamed from .tar.gz to .tar.gz.tar. This may lead<br />

to problems with decompression programs. Thus, make sure <strong>the</strong> file<br />

has <strong>the</strong> correct extension.<br />

2 To avoid complexity, <strong>the</strong> following examples will always indicate<br />

<strong>the</strong> “xampp” version.<br />

2 The Installation

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

Saved successfully!

Ooh no, something went wrong!