Morning!
I am building a web site for a family member who is in the process
of completing a PhD and MediaWiki looks like the ideal CMS to use
as they will be able to update their own web site (delegation is
always important :-)
Two questions:
1) There may be a need to have certain pages in multiple languages.
Is the best way to do this for a small site is to add a language
identifier to the page title eg:
here is the CV in [[CV.en|English]] or in [[CV.nl|Dutch]].
Is there a way to do this and still have a more readable title eg
"English CV" rathern than "CV.en"?
2) I see from the LocalSettings.php that it is possible to prevent
access to certain pages for users who are not logged in. Do I
need to list all the pages I want blocked or is it possible
to do wildcards eg internal*
TIA
James
I've read this page:
http://meta.wikimedia.org/wiki/Documentation:Security
but I'd like to know how to require editors to log in first, and how to
disable account creation.
Also, I'm not sure how to disable running PHP scripts in any directories
except the script directories. Can I just copy this ato the end of my
httpd.conf file and then reboot the server:
<Location "/wiki/images">
php_admin_flag engine off
AddType text/plain .html .htm .shtml
</Location>
All related comments on how to secure a wiki are welcome.
TIA
hi,
i was looking for an option to turn off case sensitive linking, cause
[[Building]] and [[building]] and [[BuilDing]] should be the same in
our wiki. does this exist?
-solo.
My webhost has just transferred one server to another, and in the process decided to run PHP as cgi! I no longer have pretty urls. Is there anything I can do about this?
Hello,
I wrote a tiny calendar extension for mediawiki to use it on my techno
wiki website. It works allright, but I would like to improve it.
I used the example from
http://meta.wikimedia.org/wiki/Write_your_own_MediaWiki_extension ,
which states "This function can then return a HTML string that gets
inserted into the output in place of the tags and text. Note that the
return string should be HTML, not wiki markup."
Is there any to implement extensions which can use wiki markup?
Currently I have to implement Links with class Title and Article,
basically reimplementing the [[link]] syntax and that doesn't even
work nice with all skins.
I also might want to use templates and images in the calendar output.
Or is there an easy way to parse a string and get an html in return.
Christof
--
Christof Damian
christof(a)damian.net
I'm having trouble installing mediawiki 1.3.9 on a red hat box running Apache.
I first off installed it into a subdirectory on my host, and that worked fine.
http://s94368865.onlinehome.us/WikiMetamed/index.php?title=Main_Page
I then got a domain (www.wikimetamed.org) for the site at 1and1.com,
and then since their domain tools wouldn't let me point to the
existing installation, I decided to create a new install into my
webroot directory.
The problem that first appeared is that I can't access the config
directory. If I try, Apache says it can't find the /config/index.php
file .. as though there is an existing config directory which is being
searched first.
I filed a bugzilla report for this.
So, I tried renaming the config directory to wikiconfig, and then ran
the wikiconfig/index.php which I now was able to access, but it did
not save the LocalSettings.php file even though it claimed to do so.
So, I tried modifying the LocalSettings.php file by hand from another
one I had available, and it doesn't seem to work.
Here it is here:
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
$IP = "/homepages/38/d94368847/htdocs";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD', $_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
} else {
## Compress output if the browser supports it
if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}
$wgSitename = "WikiMetamed";
$wgScriptPath = "";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs
# $wgArticlePath = "$wgScript/$1";
$wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/stylesheets";
$wgStyleDirectory = "$IP/stylesheets";
$wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
... other stuff removed ...
But when I access the site
http://www.wikimetamed.org
it appears to be pulling all the old path information out from the
original install.
I don't know how this software works .. but I find it difficult to
believe that path data is stored in the mysql tables... so what's
wrong with my LocalSettings.php file .. please ???
Hi,
as my very private Wiki grew larger, a few people liked to use it as well. So
I needed to protect the sites, that are really private. Since some kind of
user rights is scheduled for version 1.5, here comes a quickhack:
Wiki Version: 1.3.5 (maybe it works on later versions as well)
Insert the following into Title.php, function userCanRead(), right after the
globals have been defined (for me it's line 550):
# inserted by m:o
global $wgRequireUser;
$siteName = $this->getPrefixedText(); # pagename
$requiredUser = $wgRequireUser[$name];
$allowed = true;
foreach( $wgRequireUser as $siteRegExp => $requiredUser )
{
$check= preg_match("/$siteRegExp/", "$siteName");
if( $check==1 && $wgUser->getName()!=$requiredUser )
{
$allowed = false;
}
}
if( ! $allowed ) return false;
# /inserted by m:o
Then insert the following in your LocalSettings.php at the end, just before
the '?>':
#
# inserted by m:o
#
# set access rights
#
# usage:
# "regular expression that matches the site you want to protect" => "required
user"
#
# examples:
# "^Linux" matches all sites beginning with "Linux"
# "Linux" matches all sites containing "Linux"
# "Linux$" % ending with "Linux"
#
$wgRequireUser = array (
"^Hauptseite:private$" => "Mo",
"^Tbd$" => "Mo",
"^Desy" => "Mo",
"^Grid" => "Mo",
"^Logbook$" => "Mo"
);
Maybe someone can comment on possible disadvantages or security holes?
Cheers,
- Moritz
Hallo,
it seems that one of the pages in my wiki (unfortunately the main
page) is broken. All other pages are getting delivered but when I try
to call my main page the connection breaks.
I was editing this page, when the server crashed.
Is it possible to reconstruct this page or the database in general.
Any hints where I can get more information how to do it?
TIA
Harald
--
Harald Lux lux(a)lux.de
Sandkaule 5-7 Tel.: +49 228 692325
D-53111 Bonn http://www.lux.de/