PDA

View Full Version : Moving Attachments


LLent
04-03-2013, 11:22 AM
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, 03: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, 09: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, 01: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, 09:27 PM
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, 08: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.