Manual talk:$wgScriptPath

Should I config this line in the LocalSettings.php file? And what do they mean about that you need to config more after config this line?

Birger - http://wiki.360-fan.net/

Wasn't expecting this to be hard-coded, and it cost me a good deal of time when I moved my wiki. $wgScriptPath = dirname($_SERVER["SCRIPT_NAME"]); is a better DefaultSettings.php default than '/wiki'. Gherson 03:16, 14 December 2011 (UTC)

I wish it went into more detail about exactly which variables need changing. —71.197.220.208 07:06, 17 January 2012 (UTC)

Dependencies
''Note: A lot of other variables are defined relative to this one. If you redefine this in your LocalSettings.php then all dependent variables will need redefining too!''

I wonder if that's true today. Most things seem to be defined like  so they don't need a manual override. --Tgr (talk) 23:41, 25 December 2015 (UTC)

Is a directory name really legit here?
Parsoid and OCG assume that $wgScriptPath is a virtual path on the server, not an on-disk filesystem path. $wgScriptPath is used to form $wgArticlePath, and we use $wgArticlePath to build URLs to point to articles -- that doesn't work if there are filesystem paths in these variables. Are we doing it wrong? Or is the documentation here out-of-date, and $wgScriptPath should always be a virtual path which can be used to build URLs?
 * $wgScriptPath is definitely the URL path, not the filesystem path, and it can be used to build URLs. $IP is the filesystem path referring to the directory that contains index.php and such. Matma Rex (talk) 16:35, 19 April 2016 (UTC)