Quote:
Originally Posted by dholt
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
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
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.