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.

Thus, create <strong>the</strong> file access.php in a directory which is located on a<br />

level higher than <strong>the</strong> web directory of your Apache server. In <strong>the</strong><br />

case of XAMPP, this would be outside of htdocs. This file looks<br />

something like this:<br />

1 <br />

Under Linux, you should make this file readable only for yourself<br />

and PHP, that is, <strong>the</strong> system. In LocalSettings.php, you must now<br />

also add <strong>the</strong> access data file after <strong>the</strong> line in which <strong>the</strong> default settings<br />

are integrated.<br />

1 include_once( "DefaultSettings.php" );<br />

2 include_once( "path/access.php" );<br />

In this way, <strong>the</strong> web server can be prevented from simply displaying<br />

<strong>the</strong> file. It can only be addressed within <strong>the</strong> system.<br />

8.6<br />

Update and Uninstall<br />

As an administrator of a wiki, you will most likely be interested in<br />

making sure your software is always up to date. This means that you<br />

will have to load a new version of MediaWiki to your system from<br />

time to time. The risk involved has less to do with getting <strong>the</strong> program<br />

to run than it does with making sure all existing data can be<br />

taken over completely.<br />

The developers of MediaWiki have recognized this problem and<br />

integrated an automatic update mechanism in <strong>the</strong>ir installation program.<br />

Before performing an update however, you should save a<br />

copy of <strong>the</strong> database, to be on <strong>the</strong> safe side. If you now perform an<br />

update, just install <strong>the</strong> new MediaWiki. Instead of <strong>the</strong> new database,<br />

however, enter <strong>the</strong> access data for <strong>the</strong> existing one. The wiki will<br />

identify it and make <strong>the</strong> corresponding adjustments.<br />

Update<br />

8.6 Update and Uninstall �<br />

�<br />

�<br />

131

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

Saved successfully!

Ooh no, something went wrong!