I'm having problems setting a cache expiration date for the wiki.
I have this code on LocalSettings.php:
$cache_seconds = 30; // Duration of the page cache in seconds
$cache_date = gmdate("YmdHis", mktime() - $cache_seconds);
$wgCacheEpoch = max($wgCacheEpoch, $cache_date);
Notice that I changed the format from the default "M d Y H:i:s" so it is
consistent with the format specified in the MediaWiki help.
That should keep pages on cache for 30 seconds. But the cache expires
immediately.
Is this a correct way to configure cache expiration?
Is there any timezone configuration that could be affecting this?
Thanks for any help you can give me.
Hi there !
How can I auto-protect pages when they are created? I.e. I want all
newly created pages to have a specific protection level by default...
how can I do this?
Thanks for your help and best regards,
Florian
Hello everybody,
I do not know, if I am right here, so I apologize in advance if not.
I am working on a seminar about Wikis, and I need to know, if there is
any possibility in WikiMedia to track users or pages? Would it be
possible with a pixel tag, or isn't that possible with WikiMedia????
Is there any possibility to analyse weblogs in WikiMedia? What happens
when using a proxy??
Thanks a lot in advance!!!
Kind regards,
Nokta
--
Best regards,
Nokta mailto:ve-nokta@gmx.de
Thanks Brion and François.
Beside in LocalSettings, is there somewhere else I need to change the name of the database?
-----Original Message-----
From: mediawiki-l-bounces(a)Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Brion Vibber
Sent: 22 novembre, 2006 16:06
To: MediaWiki announcements and site admin list
Subject: Re: [Mediawiki-l] Changing database name?
Simon Renshaw wrote:
> I'm not sure if this can be done without breaking the Wiki but is it
> possible to rename the database that the Wiki is using?
>
> And then put the new name in LocalSettings?
>
> I didn't know that one of my colleagues would need to use a database
> with the same name I used for the Wiki.
>
> Is it possible to switch database?
AFAIK you can't directly rename a database in MySQL, but you *can* move
tables between two databases. Something like:
CREATE DATABASE bar;
ALTER TABLE foo.page RENAME TO bar.page;
ALTER TABLE foo.revision RENAME TO bar.revision;
[etc]
You might also have to GRANT user privileges appropriately on the new
database.
-- brion vibber (brion @ pobox.com)
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)Wikimedia.org
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
So my friend transferred his setup of our wiki over to my servers; I copied
over all the files, reimported the database onto my server, and changed
localsettings.php appropriately (the database and user and password parts,
anyway). He switched the DNS settings over, and now the domain (
http://howdypedia.com/) points to my servers; however, there's a call error
for it now:
*Fatal error*: Call to undefined function: wfurlprotocols() in *
/home/.goustav/howdypedia/howdypedia.com/includes/Parser.php* on line *55*
I started with my most scientific method, ripping out all the code it was
complaining about (okay, probably not the best method, but I had backups),
but after snipping out dozens of lines of code, a new one of these errors
kept cropping up every time, mostly in the includes, and always with
wfsomethingsomething. I restored the backups, but now I'm back to square
one: I tried enabling fastCGI support for the domain, and switching from php
5.1.2 to 4.4.2, but that hasn't helped.
What is it I'm missing?
On 11/19/06, Benjamin Yang <bingyang(a)mindspring.com> wrote:
> Very happy that Brion's suggestion worked for you. I am looking for
> a solution to solve the same problem. I would appreciate it greatly
> if you can share the solution in a step-by-step fashion -- like what
Assume that my MediaWiki is installed in "/path/to".
First, in LocalSettings.php, I changed $wgUploadPath:
$wgUploadPath = "/path/to/img_auth.php";
Second, in my /path/to/images directory, I created an .htaccess containing
one line:
Deny from All
Third, in my httpd.conf file I created two alias statements and restarted
Apache:
Alias /w/images/ /path/to/img_auth.php
Alias /w/images /path/to/img_auth.php
Dan
Hi,
I'm not sure if this can be done without breaking the Wiki but is it
possible to rename the database that the Wiki is using?
And then put the new name in LocalSettings?
I didn't know that one of my colleagues would need to use a database
with the same name I used for the Wiki.
Is it possible to switch database?
Thanks!
Simon
Media Wiki will not let me combine HTML and something like
[[Image:myimage.gif]]. When I use this markup in a context that contains
HTML, it doesn't work. I went to the information page for the image I
uploaded and found a URL to that image. So I tried using an <img> tag
instead, but that didn't work either. In both cases, Media Wiki writes the
literal markup to the output file. Does anybody know how to include an
image in HTML markup. I can't find anything in the help on this.
Joe
-----------------------------------------
This e-mail and any attachments are intended only for the
individual or company to which it is addressed and may contain
information which is privileged, confidential and prohibited from
disclosure or unauthorized use under applicable law. If you are
not the intended recipient of this e-mail, you are hereby notified
that any use, dissemination, or copying of this e-mail or the
information contained in this e-mail is strictly prohibited by the
sender. If you have received this transmission in error, please
return the material received to the sender and delete all copies
from your system.
Jan,
> Message: 6
> Date: Tue, 21 Nov 2006 19:53:15 +0100
> From: Jan <2036(a)gmx.de>
> Subject: Re: [Mediawiki-l] Behavior and configuration of searching
> To: MediaWiki announcements and site admin list
> <mediawiki-l(a)Wikimedia.org>
> Message-ID: <45634B1B.4000708(a)gmx.de>
> Content-Type: text/plain; charset=ISO-8859-15; format=flowed
...
> Source:
> http://meta.wikimedia.org/wiki/Search
...
I saw this page and believed it.
But try in (e.g.) de.wikipedia:
> No regular expressions or wildcards
> You cannot use regular expressions or wildcards such as ? or *.
Try searching
Baumb*
You will get:
- Baumbergebahn
- Baumblütenfest
- and so on
RegExp I did not try.
In 1.8.2 I doesnŽt.
> ... To search for pages with the words
> "boat" or "boats" search like this: "boat or boats".
in oour 1.8.2 it looks for:
boat
or
boats
Even thatŽs why I asked, docu and/or reality seem to be inconsistent.
Uwe (Baumbach)
U.Baumbach(a)web.de
______________________________________________________________________
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130