vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Moving Attachments (https://vborg.vbsupport.ru/showthread.php?t=296824)

LLent 04-03-2013 10:22 AM

Moving Attachments
 
i am in 4.1.11 and i am about to move attachments to the file system i have looked at a couple videos and i want to get the correct path does anyone know where i can download

rootstatus.php file so that i may put that in my folder

another question when i do this will i lose any attachments or has everyone that has done this been successful

thanks in advance

snakes1100 04-03-2013 02:10 PM

You can simply look in your phpinfo in either of these sections.

admincp --> maintenance --> view php info

Apache Enviroment Section
SCRIPT_FILENAME /home/username/public_html/forums/admincp/index.php

or

PHP Variables Section
_SERVER["DOCUMENT_ROOT"] /home/username/public_html

1. Backup Database.
2. Create a folder at /home/username/public_html/attachments, via FTP
3. Set path in Storage Type: Attachments to the above, your path will differ by name or its path.
4. Chmod attachments dir to 775 or 777, depends on your server setup.
5. Click Go

LLent 04-03-2013 08:40 PM

Thanks this worked like a charm upon reading a post from lynne there was mention of not creating a folder in public_html so i created one in above web root as stated in the post and vb manual ...

thanks again

snakes1100 04-04-2013 12:20 AM

I dont recommend that, as many server setups will not allow you to write to a folder in that location.

LLent 04-04-2013 08:27 PM

Quote:

Originally Posted by snakes1100 (Post 2414162)
I dont recommend that, as many server setups will not allow you to write to a folder in that location.


if that is the case then the vb manual should reflect that plus we shouldnt have posts like this

https://vborg.vbsupport.ru/showthread.php?t=208813

in any case it was very successful using the above info and what lynne,COBRAws stated and vb manual

snakes1100 04-05-2013 07:53 AM

No, i meant that i dont recommend it, as some server setups wont allow for writing in the parent directory of public_html/www/root, i wasnt saying the manual or the post was wrong.

I do feel that its wrong to say that, if the server in question doesnt allow it, your going to get a simple failed to write test file to dir, with no further explanation.


All times are GMT. The time now is 07:50 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.02639 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
  • (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