Thread: Major Additions - Links and Downloads Manager
View Single Post
  #2877  
Old 02-18-2008, 12:30 PM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cillianok View Post

2. If your web site runs on Microsoft's IIS web server in cgi mode (you can find this out by looking at the main VB admincp page), a key php environment variable DOCUMENT_ROOT is not defined by default. This causes serious problems with the placement of files on your server. LDM detects this problem and issues a fatal error if necessary. If this occurs, edit includes/local_links_init.php and define the constant LDM_DOCUMENT_ROOT. The code highlights where to make the edit. Alternatively, you can patch your web server to define DOCUMENT_ROOT correctly.


I'm getting this error:

=======================================
Unexpected critical failure
Critical Error: Document Root not set, Edit local_links_init.php
=======================================

I'm assuming this is the error you mentioned?

How/where do I "define the constant LDM_DOCUMENT_ROOT"

or How do I patch the server?

thanks..
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01844 seconds
  • Memory Usage 1,769KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete