MediaWiki installation

apps

#1

Hi guys,
I just installed MediaWiki on my site and it seems that there are two problems:

  • PHP’s register_globals option is enabled
  • PHP server API is cgi; using ugly URLs (index.php?title=Page_Title)

So I was wondering if the user can disable PHP’s register globals and is there a way to avoid “ugly URLs”?

Thanks in advance. :slight_smile:


#2

- PHP’s register_globals option is enabled

If you’re running PHP as an Apache module (not the default) you can use the following line in an .htaccess file at the root of your site:

php_value register_globals off If you’re running PHP as CGI, you can insert ini_set() at the top of MediaWiki’s index.php file. Note that you’ll need to do this again every time you update your MW installation.

- PHP server API is cgi; using ugly URLs (index.php?title=Page_Title)

You can fix that using these instructions from WikiMedia. My preferred method is to install Mediawiki into another directory, say /mw, and use the mod_rewrite one-liner:

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

If you want useful replies, ask smart questions.


#3

Sorry to bump an old thread… but… I got similar question.

Upon intallation, I got following message:

According to DH Wiki, I should disable “Run PHP as CGI” before disabling register_globals.

So now, after unchecking “Run PHP as CGI” and update .htaccess with “php_flag register_globals off,”

that problem should go away, am I right?

Or should I still go through Beautifying URLs process?