Project:Support desk

Jump to navigation Jump to search

About this board

Welcome to's Support desk, where you can ask MediaWiki questions!

There are also other places where to ask :

Before you post

Post a new question

  1. To help us answer your questions, please always indicate which versions you are using (reported by your wiki's Special:Version page):
    • MediaWiki
    • PHP
    • Database
  2. Please include the URL of your wiki unless you absolutely can't. It's often a lot easier for us to identify the source of the problem if we can look for ourselves.
  3. To start a new thread, click "Start a new topic".
Previous page history was archived for backup purposes at Project:Support_desk/old on 2015-07-30.
Other languages: English  العربية čeština Esperanto français 日本語 中文

Email address during registration

Fokebox (talkcontribs)


How to make it obligatory to indicate email address during registration?

Reply to "Email address during registration"

Question about listing the proper copyright

Guy Macon (talkcontribs)

I am not very familiar with how copyrights are documented here.

The file

File:VLC 3.0.9 on Fedora Linux 31 and GNOME Shell 3.34 -- playing Spring, a short film by Blender Foundation.png

Looks like it is claiming that it is a screenshot from free and open source software (which VLC is) but does not appear to mention the copyright status of the Spring film itself.

Spring is under a Creative Commons Attribution 4.0 International license (CC BY 4.0). See

Should we somehow indicate the copyright status of the movie the screenshot is from as well as the copyright status of the software that the screenshot was taken from?

DSquirrelGM (talkcontribs)

Both should be mentioned, if it's intended to be associated with both. Having separate sections for each - let's call it, component - of the screenshot with license info seems to be the best course of action.

Bawolff (talkcontribs)

honestly, i would much prefer these types of files be at commons. Local uploads are a it of a mess.

Reply to "Question about listing the proper copyright"
Sskorkim (talkcontribs)


I want to create an account using a query (mysql).

But I don't know how to encrypt the password. Help me.









user_editcount) values (





date_format(now(), '%Y%m%d%H%i%s'),


date_format(now(), '%Y%m%d%H%i%s'),


Bawolff (talkcontribs)

dont do this. For starters you will have referential integrity issues with actor table.

Use createAndPromote.php instead

Reply to "create account using SQL query"

Disable or Uncheck "Leave a redirect behind"

Jer Hughes (talkcontribs)

I'd like to disable, or at least make the default unchecked for "Leave a redirect behind" when a user moves a page. Is that possible?

Reply to "Disable or Uncheck "Leave a redirect behind""

Error Style not displaying after removing index.php

SamiWey (talkcontribs)

mediawiki 1.34


RewriteEngine On
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]

RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]

RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]


 ## The URL base path to the directory containing the wiki;
 ##  defaults for all runtime URL paths are based off of this.
 ##  For more information on customizing the URLs please see: 


 $wgScriptPath = ""; 

 $wgScriptExtension = ".php"; 

 $wgArticlePath = "/wiki/$1";
$wgUsePathInfo = true;
Malyacko (talkcontribs)

@SamiWey You posted stuff from files but did not explain what the problem is. Or if you have some question. Or where to see a problem.

Ciencia Al Poder (talkcontribs)

$wgScriptPath probably needs to be "/" instead of "" Nope, empty string is fine for this setting.

The configuration looks fine.

Hit the F12 key, select the network tab, and reload the page. Look at requests to the load.php URL and see if some of them return 5XX or 4XX status codes, open them and see if there's any error there.

SamiWey (talkcontribs)
SamiWey (talkcontribs)

this appears in console

  1. Refused to apply style from '' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
  2. Página_principal:12 GET net::ERR_ABORTED 404
Reply to "Error Style not displaying after removing index.php"

How to bulk update the external domain links for all Wiki pages

SanjayKSahu (talkcontribs)

Hi Support Desk,

Could you please help us providing any maintenance script exist in WIKI/maintenance to update the domain for external links under wiki pages?

Thanks you!


AhmadF.Cheema (talkcontribs)
Bawolff (talkcontribs)
Reply to "How to bulk update the external domain links for all Wiki pages" (talkcontribs)

I'm currently receiving the following error on a fresh install of media wiki. I've not seen this before so any help would be greatly appreciated.

[XlUxDInaLdpKzzb5@CIEigAAACI] /mw-config/index.php?page=Install Wikimedia\Rdbms\DBQueryError from line 1603 of /home/vol1000_5/ A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?

Query: CREATE TABLE `wikiuser` (


user_name varchar(255) binary NOT NULL default '',

user_real_name varchar(255) binary NOT NULL default '',

user_password tinyblob NOT NULL,

user_newpassword tinyblob NOT NULL,

user_newpass_time binary(14),

user_email tinytext NOT NULL,

user_touched binary(14) NOT NULL default '',

user_token binary(32) NOT NULL default '',

user_email_authenticated binary(14),

user_email_token binary(32),

user_email_token_expires binary(14),

user_registration binary(14),

user_editcount int,

user_password_expires varbinary(14) DEFAULT NULL


Function: Wikimedia\Rdbms\Database::sourceFile( /home/vol1000_5/ )

Error: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' DEFAULT CHARSET=binary' at line 17 (


#0 /home/vol1000_5/ Wikimedia\Rdbms\Database->getQueryExceptionAndLog(string, integer, string, string)

#1 /home/vol1000_5/ Wikimedia\Rdbms\Database->reportQueryError(string, integer, string, string, boolean)

#2 /home/vol1000_5/ Wikimedia\Rdbms\Database->query(string, string)

#3 /home/vol1000_5/ Wikimedia\Rdbms\Database->sourceStream(resource (closed), NULL, NULL, string, NULL)

#4 /home/vol1000_5/ Wikimedia\Rdbms\Database->sourceFile(string)

#5 /home/vol1000_5/ DatabaseInstaller->stepApplySourceFile(string, string, boolean)

#6 /home/vol1000_5/ DatabaseInstaller->createTables(MysqlInstaller)

#7 /home/vol1000_5/ Installer->performInstallation(array, array)

#8 /home/vol1000_5/ WebInstallerInstall->execute()

#9 /home/vol1000_5/ WebInstaller->execute(array)

#10 /home/vol1000_5/ wfInstallerMain()

#11 {main}

SSethi (WMF) (talkcontribs)

Hi! Did you run Update.php? Also, which version of MediaWiki you are trying to install?

Bawolff (talkcontribs)

What is $wgDBTableOptions set to? I think it's set to something wrong. It should be something like $wgDBTableOptions = "ENGINE=InnoDB, DEFAULT CHARSET=binary";

Bawolff (talkcontribs)

Wait, this is in the installer. This would probably indicate _MysqlEngine is set to the empty string. I'm not sure how that could happen. Are you using the normal installer? Did you get MediaWiki from the official site?

Can you do the SQL query SHOW ENGINES; and tell us the results?

During the installer, on the mysql settings step, what did you select for Storage engine: option?

Reply to "Install error"

Rewrite MediaWiki's URLs - Remove index.php

Mhuartamendia (talkcontribs)

I've just deployed an internal wikipage for my company. As of now we have a couple of sections on the left navigation pane (we have more but only three are being used at the moment).

Section 1 Section 2 Section 3

Whenever I click on one of the sections I get the URL: 1

What we desire to do is to get URL: 1

Please, don't instruct me to read:, the guide might be clear for you guys but at least for me, it isn't. A real life scenario example would make things a LOT easier...but there aren't any available, not even outside their wikipage. I've also read similar threads here on stack overflow, but still, no luck.

According to what I've been reading, file LocalSettings.php should have at the end:

 ## The URL base path to the directory containing the wiki;
 ## defaults for all runtime URL paths are based off of this.
 ## For more information on customizing the URLs please see:
 $wgScriptPath = "/mediawiki";
 $wgScriptExtension = ".php";
 $wgArticlePath = "{$wgScriptPath}/wiki/$1";
 $wgUsePathInfo = true

But there has to be an htaccess file also on the mediawiki web directory with something like this:

RewriteEngine On
 RewriteRule ^/?mediawiki/wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
 RewriteRule ^/mediawiki*$ %{DOCUMENT_ROOT}/w/index.php [L]*

So if I create this file on the mediawiki directory, will this work? any other information I might be missing here?

Bawolff (talkcontribs)

Based on what you've been describing (You desire . index.php is in the mediawiki directory), you need a couple of differences: $wgArticlePath = "mediawiki/$1"; for the article path instead of what you wrote (rest of LocalSettings.php is fine).

and for the .htaccess you want

RewriteRule ^/?mediawiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

At least I think. I haven't tested this, ymmv. The .htaccess may depend on what webserver and if its configured to read .htaccess files.

Mhuartamendia (talkcontribs)

Hey @Bawolff

Thanks for answering!

I'll try this in a moment, web server is Apache and I'm not really sure where to put the file. Should this be in /mediawiki path? or in the webserver main root path?

Mhuartamendia (talkcontribs)


I edited local httpd.conf file to AllowOverride All, so .htaccess could have permissions to change the URL.

I also created the .htaccess file in /var/www/html with the content provided. However when browsing to, page is blank :(

Also edited LocalSettings.php as you said

Any ideas?

Mhuartamendia (talkcontribs)

Also, at this point, I don't know if .htaccess has to be placed at /var/www/html or the media wiki path...

Malyacko (talkcontribs)
Mhuartamendia (talkcontribs)

Hi @Malyacko

I understand these questions are more suitable for HTTPD/Apache, but we are not even sure if the code:

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?mediawiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]

is correct.

Can you personally confirm that so I can move on to Apache/HTTPD Forums? Because if the code is wrong, there's no use on checking Apache

Bawolff (talkcontribs)

note those rewritecond rules are apache code not mediawiki code. I personally think its in scope here as configuring apache to work with mediawiki short urls is a common system admin task, and one lots of people have trouble with, but ultimately that is an apache question not a mediawiki question

Mhuartamendia (talkcontribs)


Used this on Local Settings:

$wgScriptPath = "/mediawiki";

$wgArticlePath = "/mediawiki/$1";

And used this on .htaccess

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^mediawiki/(.*)$ w/index.php?title=$1 [PT,L,QSA]

RewriteRule ^mediawiki/*$ w/index.php [L,QSA]

RewriteRule ^mediawiki$ w/index.php [L,QSA]

It is now redirecting ok, but stating MainPage is not found on directory

Þjarkur (talkcontribs)

I'm not quite sure what your last problem is regarding, but this tool can create automatic configurations.

Bawolff (talkcontribs)

in fairness you didn't mention in your otiginal post that mediawiki was in a directory named w.

Mhuartamendia (talkcontribs)

Hi @Bawolff

Actually that tool serves me right if the domain is public and it currently isn't

MediaWiki directory is in /mediawiki. Pretty sure that has something to do with it

Mhuartamendia (talkcontribs)

UPDATE: So I change my LocalSettings.php content to:

$wgScriptPath = "/mediawiki";

$wgArticlePath = "/mediawiki/$1";

And .htaccess to:

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^mediawiki/(.*)$ mediawiki/index.php?title=$1 [PT,L,QSA]

RewriteRule ^mediawiki/*$ mediawiki/index.php [L,QSA]

RewriteRule ^mediawiki$ mediawiki/index.php [L,QSA]

Replacing all /w to mediawiki as it is the directory where it is installed

When I browse to I get:

Not Found

The requested URL /mediawiki/Main_Page was not found on this server.

Looks like rewriting works fine but there's no content now... (and there previously was)

Mhuartamendia (talkcontribs)

htaccess had to be on root path not mediawiki path, that was it! Thanks!

Reply to "Rewrite MediaWiki's URLs - Remove index.php" (talkcontribs)

Non riesco più ad accedere al sito perchè archiviato, non ricordo più a quale mail è associato.

Ho un altro sito fatto con gli stessi alunni e con questo non ho avuto problema a riattivarlo.

Potete aiutarmi per favore?


Roberta Pelati (insegnante)

Reply to "Sito archiviato"

[Solved] Forbidden You don't have permission to access /index.php - Ask your provider to disable Mod_security

Rainerhamm (talkcontribs)


I hope anybody can help me. I am running Mediawiki 1.28.2 with PHP 5.6 on

Yesterday I recognized, that I get an error when I want to preview or save a page that contains a colon at the begin of a line to produce an indentation.

The error is


You don't have permission to access /index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

And the administration-panel shows the error

Cannot allocate memory (client: Couldn't create child process opt/suphp/sbin/suphp for home/web1807/public_html/api.php

After searchin in the www I thought it is something regarding mod_security(what is that?) or anything else regarding apache. But the technical support said that it comes from the actual version of mediawiki. "In der aktuellen Version vom Wiki werden Sonderzeichen transformiert übersendet, was bei bestimmten Sonderzeichenkombinationen einen 404 Fehler im Browser verursacht". In English: In the actual version ... special characters are sent after transformation. That causes with special character combination a 404-error in the browser"

Can you confirm it? What can I do that my wiki runs like before?

Thanks and best regards

Rainer Hamm (talkcontribs)

Chmod index.php to 755. (talkcontribs)

Generally al, the MediaWiki files should be readable, writable, and exicutable by the user readable, and executable, by the group and readable, and exicutable by the world. Chmod equivalent is 755. (talkcontribs)

As for the memory error, try increasing the memory limit in php.ini

Rainerhamm (talkcontribs)

Thank you!

index.php was on 754, and it worked in normal use.

Now I changed it ro 755. But that didn't change anything.

The error still appears.

I already had set the memory limit from 128 to 512M. No success.

Any other idea? (talkcontribs)

What version of MediaWiki are you using?

Rainerhamm (talkcontribs)

Version 1.28.2 (talkcontribs)

Mod_security is an apache module that helps to protect your website from various attacks. It is used to block commonly known exploits by use of regular expressions and rule set (talkcontribs)

Add the following to a file called .htaccess in the domains root directory.

<IfModule mod_security.c>

SecFilterEngine Off

SecFilterScanPOST Off


Rainerhamm (talkcontribs)

OK. But that seems not to be the reason. I askes the technical support of my provider.

I think with mod_security for example words like Casino or Poker are forbidden. But I can write Casino into the script, and the preview works. If I set a colon at the begin of the line, I get the error message. (talkcontribs)

That will disable mod_security (talkcontribs)

Could you provide a link to your wiki.

Rainerhamm (talkcontribs)

.htaccess changed. No effect.

I tried a similar entry already yesterday after reading half of the net. :-)

Rainerhamm (talkcontribs)
Rainerhamm (talkcontribs)

Then I will search for a simple test. (talkcontribs)

I can load your wiki just fine.

Rainerhamm (talkcontribs)

Please login with user "mediawiki" and the password "support".

Then open any page, for example "Burgwall" in the middle of the page (a street in our town) and add a line

": Test" Normally that would create an indentation

Then make a preview and you get the message.

Try the same without the line and it works.

Rainerhamm (talkcontribs)

Are you MacFan4000. How have you done it.

Normally you must answer a question regarding our city to create a new account.

You shouldn't know the answer. ??? Or do you have special possibilities? :-) (talkcontribs)

I am MacFan4000, no In did get a 403 when trying to do that. I simply googled for translations and questions

Rainerhamm (talkcontribs)

I have seen: You changed "Umstraße 22". This is a small page and a good object to test as well.

Rainerhamm (talkcontribs)

Have you tried to add a line with a colon and save or preview? (talkcontribs)
TheDJ (talkcontribs)
Rainerhamm (talkcontribs)

And have you got the error as well?

What shall I search in Errors ans symtoms.

It's a hard work for a non-specialist in IT and Mediawiki and a German with a bad English. :-)

Rainerhamm (talkcontribs)

But the colon is not in the URL. It is in the text at the begin of a line.

I can try to read it in English. But I don't know whether I will find a solution there.

Rainerhamm (talkcontribs)

A colon in the URL doesn't make a problem.

For example "index.php?title=Spezial:Spezialseiten" works with a colon. No problem.

Rainerhamm (talkcontribs)

Hello! Are you still busy with that issue?

It is not solved. Or do you think so?

Rainerhamm (talkcontribs)

However - from today the mistake doesn't appear anymore. I don't know what is changed.

I changed nothing - not in the wiki- and not in any other configuration.


Moscowdreams (talkcontribs)

Full message I received future for internet searches:


You don't have permission to access /index.php on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Moscowdreams (talkcontribs)

Change Mod_security with the administrator

Mod_security is an apache module that helps to protect your website from various attacks. It is used to block commonly known exploits by use of regular expressions and rule set

Reply to "[Solved] Forbidden You don't have permission to access /index.php - Ask your provider to disable Mod_security"