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

Quote:
Originally Posted by dholt View Post
Can you look at this and tell me what you think here and what should I do next

LDM (admin settings) 2.2.6
file_icons_dir images/ldm_icons/
local_file_root No
local_file_root_prefix (not set)
File uploads Enabled
upload_dir http://www.mysite.com/ldm_upload
thumbs_dir http://www.mysite.com/forum/images/ldm_thumbs
PHP (php.ini) 4.4.4
allow_url_fopen Yes
cURL Yes
GD2 Yes
open_basedir (not set)
post_max_size 8M
upload_max_filesize 2M
MySQL (my.ini) 4.1.21-standard-log
wait_timeout 100
Low value for MySQL wait_timeout
Can I change this or is this Normal in red
You normally don't need to change the wait_timeout setting, and it requires system admin privileges on your server to make the change in any case. It's highlighed because under certain circumstances people have found that large downloads were failing. The connection to the sql database was being dropped before the download had finished. (Basically, when you download a very large file over a slow line, it's possible for the MySQL server to think you've gone away before vbulletin has a chance to close down properly.)

However, your uploads_dir and thumbs_dir settings don't need the full url, see below.

Quote:
Originally Posted by dholt View Post
In Controls on File Uploads under upload_dir I created a folder in the root of my site called ldm_upload and made it writable 777. I then added in the space there http://www.mysite.com/ldm_upload
should there be a trailing slash with it
Uploads enabled.........YES
Upload filetype ........left blank (if blank, all types in VB attachments table are allowed)

Upload MAX space left 0 for no limit unless you have or some has a sujestion limit.

local_file_root No
local_file_root_prefix (not set)


what do I set these too as there is no documentation for it in red.
Trailing slashes should be optional

local_file_root and local_file_root_prefix are described quite fully in the online manual at http://www.eirma.org/wikis/index.php...nd_Server_Load. Basically, these settings give you the means to store files out of the way of prying eyes. By default, LDM treats a local filename (e.g. /mydir/myfile.pdf and without the http://yoursite bit at the front) as being relate to the base directory of your web site (i.e. http://yoursite/mydir/myfile.pdf).

If you set local_file_root, it will treat the same file as being held in a top level directory /mydir/myfile.pdf relative to your web server, rather than just your web site on that server.

If you set local_file_prefix, this gets stuck on the front of all local filenames, including the upload directory. It's a shorthand way of preventing people being able to link to files on your server which are held in other parts of the filesystem.

In essence:
- local_file_root allows you to *totally prevent* people from accessing LDM entries except through LDM
- local_file_root_prefix allows you to *block off completely* access to parts of your server except those that you really want to be accessed.

These are specialised settings.

Quote:
Originally Posted by dholt View Post
In the root of my site I created a folder called idm_upload, but my server created a file called http: .......In it there is another file called www.mysite.com open ldm_upload and in that there is (1)

Can I delete the one I created and keep the one my server created is the Question

Thanks in advance here is my site if you want to look and you have some time.
My site

Thanks Andrew
I think this is because you have set upload_dir as what you thought was a full url. However, LDM thinks you've told it to use a subdirectory called http: then a subdirectory called www.mysite.com, and so on. These are perfectly valid directory names on some systems. The solution is to set upload_dir without the url part. (I suppose LDM should have caught that, so I need to check.) Reset upload _dir to the local directory name.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01083 seconds
  • Memory Usage 1,793KB
  • 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_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