Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
  #1  
Old 02-26-2008, 04:41 PM
Dave84311 Dave84311 is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Attachments stored on server instead of database

I need to store files on my server (a folder in a path) because the load on my server is huge as it is, and I don't think mysql can handle much more of a load.

Does anyone know of a mod that can do this for me, otherwise I will have to write my own
Reply With Quote
  #2  
Old 02-26-2008, 04:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's an option in vbulletin. Go to Admin CP > Attachments > Storage type and select to store them in the file system instead. Make sure the directory you create to store the attachments in is chmod to 777.
Reply With Quote
  #3  
Old 02-27-2008, 02:09 AM
Dave84311 Dave84311 is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get tons of errors when trying to do so:

<!-- END CONTROL PANEL HEADER -->

Attachment : <b>36</b> Filename : <b>Kick Packets.rar</b><br />Attachment : <b>36 Error</b> Could not

create file system directory to hold your attachment.<br />Attachment : <b>40</b> Filename : <b>invisible

.rar</b><br />Attachment : <b>40 Error</b> Could not create file system directory to hold your attachment

.<br />Attachment : <b>41</b> Filename : <b>invis.jpg</b><br />Attachment : <b>41 Error</b> Could not

create file system directory to hold your attachment.<br /><p align="center" class="smallfont"><a href

- Proceed</a></p>
Reply With Quote
  #4  
Old 02-27-2008, 02:51 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

And did you put the *full* path name to the attachment directory in where it said to - like "/home/yoursitename/attachments" and also make sure the directory is chmod to 777?
Reply With Quote
  #5  
Old 02-27-2008, 04:23 PM
Dave84311 Dave84311 is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Indeed, its a windows server so I used a path "C://uploads", and gave the server permissions to write to it, however it just kept giving me errors.
Reply With Quote
  #6  
Old 02-27-2008, 05:35 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I would post about this over at vbulletin.com and see if they can help you out.
Reply With Quote
  #7  
Old 02-27-2008, 05:49 PM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

C:\\uploads or C:\uploads
Reply With Quote
  #8  
Old 02-28-2008, 12:27 AM
Dave84311 Dave84311 is offline
 
Join Date: Oct 2004
Posts: 26
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by snakes1100 View Post
C:\\uploads or C:\uploads
Neither work, nor C:// or C:/
Reply With Quote
  #9  
Old 02-28-2008, 12:58 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In that folder try turning off simple file sharing and restart iis for that site.
Reply With Quote
  #10  
Old 02-28-2008, 01:19 AM
SEOvB's Avatar
SEOvB SEOvB is offline
 
Join Date: May 2007
Location: Indianapolis
Posts: 2,451
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave84311 View Post
Neither work, nor C:// or C:/
Shouldn't your slashes be facing the other way for windows machines?

IE: C:\
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:19 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07849 seconds
  • Memory Usage 2,239KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • 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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete