vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Moving A lot Attachments to File System (https://vborg.vbsupport.ru/showthread.php?t=175831)

nokidding 04-11-2008 01:25 PM

Moving A lot Attachments to File System
 
Hey guys
I am running a forums where people upload songs and music.. Each song is on average 5 MB and we have over 2000 attachments stored in the DB.

When I run the Attachment Storage Type in the admin cp.. I set the directory and the number of files per cycle (50).

The script runs for a while and then I get a timeout or a page not found page.. sometimes the page becomes blank...

We need to move these attachments ASAP as the host is threatening to suspend our account due to the huge databases size

Any help or suggestions would be appreciated

snakes1100 04-11-2008 04:05 PM

Your host needs to adjust the php settings and possibly mysql settings to allow you to move the files out of the db, the setting max_execution_time needs to be raised to allow the script to execute longer, if your host allows you the use of a php.ini file per directory on your account, you can set the limit there.

create a php.ini file and place this in it and upload it to every folder in your account that is dealing with the forums - max_execution_time 300

You can also try less than 50 at a time as well, lower 10 everytime unti lit stops timing out.


All times are GMT. The time now is 05:53 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00993 seconds
  • Memory Usage 1,705KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete