vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Move Folder attachment (https://vborg.vbsupport.ru/showthread.php?t=328337)

amine13420 11-09-2020 10:38 AM

Move Folder attachment
 
Hi guys,

have a question about the attachment folder in vbulletin, i have already moved the attachment from database to a systemfolder,

But as this is taken a lot of space on my hosting, i would like to change the hosting folder to another space,

i did not found any idea how to do this,

if somebody have already done, thank you for help !

Dave 11-09-2020 11:49 AM

It doesn't matter if you host it in the database or filesystem, it would take up space regardless. You can use symlinks on Linux to perhaps achieve what you want, you might have to reach out to your host about it.

amine13420 11-09-2020 12:09 PM

hi,

and exemple of path that i have to put ?

exemple ?

lange 11-09-2020 02:03 PM

The path depends on the location of your forum.

For security reasons, the path should be under the web root.

If your forum is at the root, try
Code:

../FolderAttachment__Name
If your forum is in subdomain /forum, try

Code:

../../FolderAttachment__Name

amine13420 11-09-2020 02:06 PM

Quote:

Originally Posted by lange (Post 2604601)
The path depends on the location of your forum.

For security reasons, the path should be under the web root.

If your forum is at the root, try
Code:

../FolderAttachment__Name
If your forum is in subdomain /forum, try

Code:

../../FolderAttachment__Name

Thank you,

I need to host the file on an external hosting, not the same hosting.

Different path.

snakes1100 11-11-2020 08:33 PM

Simple, you would need to mount the off site folder via fstab, then symlink it/the folder, then change the path in vb to the symlink/name you made for the offsite mounted dir.

You'll need to use nfs to achieve the off site mount.

If the connection isnt fast, it will probably timeout etc on uploading via vb, if its nic to nic it would be fine.

you'll need root access on both boxes to setup nfs & the mount in fstab


All times are GMT. The time now is 11:39 PM.

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.01245 seconds
  • Memory Usage 1,718KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (6)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