Quote:
Originally Posted by AndrewD
The file local_links_init.php is contained in the includes/ subdirectory of the release zipfile and uploaded into the forums/includes/ subdirectory.
Open the file using a text editor and find these lines:
Code:
if ($_SERVER["DOCUMENT_ROOT"]) {
define('LDM_DOCUMENT_ROOT', $_SERVER["DOCUMENT_ROOT"]);
}
else {
// If you are running the IIS web server in CGI mode on Windows or if otherwise warned, uncomment and edit this line
// define('LDM_DOCUMENT_ROOT', '/path/to/your/site');
}
You need to replace the line
Code:
// define('LDM_DOCUMENT_ROOT', '/path/to/your/site');
by the correct directory path to your web site, e.g.:
Code:
define('LDM_DOCUMENT_ROOT', '/data/www-root/mysite');
You can generally figure out what is your '/data/www-root/mysite' by going to your vbulletin/admincp/maintenance/php info page, and taking a look at the listing. I can't easily tell you what line to look for, as I do not have a windows-based IIS server available.
If you have problems with this, send me a PM with site details and a username/password for an account with admin privs on your board, and I'll take a look myself.
|
A quick note: the hosted Windows server we use does define DOCUMENT_ROOT but does so incorrectly (for this purpose) so I found I had to comment out the
whole of the
if ($_SERVER["DOCUMENT_ROOT"]) code except the required line - e.g.
Code:
//if ($_SERVER["DOCUMENT_ROOT"]) {
// define('LDM_DOCUMENT_ROOT', $_SERVER["DOCUMENT_ROOT"]);
//}
//else {
// If you are running the IIS web server in CGI mode on Windows or if otherwise warned, uncomment and edit this line
define('LDM_DOCUMENT_ROOT', '\\servername\domains\mysite.com\user\htdocs\testvb');
//}
On our Windows server (I don't know if this is the same for others) the _SERVER["DOCUMENT_ROOT" variable found in the "View PHP Info" section of the vB control Panel gives the path to \admincp\index.php so just removing that part of the path gives you the full path to the forum home directory on that server which is what you need to enter for the definition of LDM_DOCUMENT_ROOT.