Manual talk:$IP

The file LocalSettings.php has the paragraph
 * # If you customize your file layout, set $IP to the directory that contains
 * # the other MediaWiki files. It will be used as a base to locate files.
 * if( defined( 'MW_INSTALL_PATH' ) ) {
 * $IP = MW_INSTALL_PATH;
 * } else {
 * $IP = dirname( __FILE__ );
 * }

Should this paragraph be edited for the setting up of the mediawiki?

Should the string MW_INSTALL_PATH be substituted to some sequence of characters, specific for the custom server?

Should the string dirname( __FILE__ ) be substituted to some sequence of characters, specific for the custom server?

Can this setting be responsible for the error message Failed to parse (PNG conversion failed; check for correct installation of latex, dvips, gs, and convert):

Is it possible to put the answers in the article?

Such an explanation would help to indicate the path in such a way that the mediawiki finds the programs it needs. Tori 19:07, 6 March 2011 (UTC)


 * "MW_INSTALL_PATH" is a constant. It must not be changed. dirname is a php function, which automatically returns the right sequence of characters. The block of code is fine as it is. :-)

Security
Does using $IP in a require_once line in LocalSettings.php when installing an extension cause a security problem? It was claimed to be here: "register_globals vulnerability via $IP, exploitable with XSS like that: http://example.com/w/extensions/ViewFiles/ViewFiles.php?IP= stealMyCookies ". And yet most extension pages seem to call for using $IP. Leucosticte (talk) 18:23, 26 October 2012 (UTC)