Manual talk:$IP
From MediaWiki.org
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. :-)