Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
  #31  
Old 13 Apr 2007, 13:56
Klopek Klopek is offline
 
Join Date: Jan 2006
Originally Posted by scotty View Post
you must have a look at your attachment (absolute) path: this must match the path on your attachment server and NOT on your webservers.

example:

your webservers directory structure is:
/home/users/forum/htdocs/www for the php files
/home/users/forum/htdocs/attachments for the attachments

but your attachment server has the following structure:
/home/sites/attachments/htdocs/www for the php files
/home/sites/attachments/htdocs/attachments for the attachments

than is the last path the correct one for the CP.

That doesn't work. The CP doesn't allow to set a path that doesn't exist on the server (but it exists on the attachment server). How can I set it otherwise ?
Reply With Quote
  #32  
Old 20 Nov 2007, 00:13
dave6901_2000 dave6901_2000 is offline
 
Join Date: May 2004
Has anyone ever got this to work with 2 different IPS ??
I have one server in HK and the other in the USA I wish to have my USA Server handle all my attachments and images
Reply With Quote
  #33  
Old 20 Nov 2007, 06:04
Jafo232 Jafo232 is offline
 
Join Date: May 2004
Curious, but why not mount a network drive as the Vb attachment directory?

I have a server on my network that I just use for backups. Basically all the other servers have it mounted in a directory named /backup. All I have to do is perform tapes on the backup server instead of all of them.

I don't see why the same couldn't be done for attachments/avatars..
__________________
Become a Lampwright today at www.lampwrights.com!
Reply With Quote
  #34  
Old 20 Nov 2007, 06:52
amcd amcd is offline
 
Join Date: Oct 2004
Jafo232, there can be many reasons. Your suggestion about network storage is good if the issue is disk space shortage, but there can be many other issues/objectives.

It may be desirable to run the forums on a multi-carrier, BGP network which costs much more (touted by hosts as premium bandwidth) and the attachments on a lower cost network (value or volume bandwidth).

A big board may want to reduce load on its main webserver by offloading some functions.

A board using shared hosting does not have the option of network mounts, but it can use multiple hosting accounts quite easily if vbulletin is capable of distributed functioning.

Just a few. Hope you get the idea.
__________________
eXBii.com - Indian community
no XB no fun know XB know fun !
Reply With Quote
  #35  
Old 21 Nov 2007, 07:38
dave6901_2000 dave6901_2000 is offline
 
Join Date: May 2004
My main goal is to reduce server load and also save on B/W my board holds 1000's of Attachments
My US server I have Tons of room and B/W to spare
Reply With Quote
  #36  
Old 19 Feb 2008, 15:02
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Originally Posted by scotty View Post
i've just implemented it and here is my way:

AdminCP => Options => Cookies => Cookie-Domain
set it to .yourdomain.com - with the two dots!!!

setup a subdomain called attachment.yourdomain.com
(in my case this is located on the same server as my master-webserver, so I don't have to deal with the attachment path)

copy the following files in the root:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

copy the following files in root\includes:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

go to the templates section of your board:
replace all occurrences of

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and

replace all occurrences of

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

last step:
add a replacement variable to all your styles:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this last step is for the "attach" tag

delete all your cookies (maybe via filesystem) and test the installation.

have fun
First thanks too much scotty for the way
Did anyone try this way in seperate attachment server ?
and are it have any bugs etc .. ?
Thanks ,
Zi55
Reply With Quote
  #37  
Old 19 Feb 2008, 17:15
Leo Renard's Avatar
Leo Renard Leo Renard is offline
 
Join Date: Feb 2008
Real name: Leo Renard
I always have attachments disabled. If anyone really needs to upload anything, they can at my uploading site (Not on the same server)
Reply With Quote
  #38  
Old 22 Feb 2008, 20:46
Nitro212 Nitro212 is offline
 
Join Date: Mar 2007
but that method only works for storing attachments on the db? what if i want to store them on file system in another server.. will that still work?
Reply With Quote
  #39  
Old 25 Feb 2008, 23:44
ferreo ferreo is offline
 
Join Date: Nov 2004
What you can do is to move your attachments to a separate server in a file system and point the vB install to a NFS mount directory that is local to the web server(s). I have it done that way and it works like a charm.
Reply With Quote
  #40  
Old 26 Feb 2008, 22:02
Mickie D Mickie D is offline
 
Join Date: Jun 2002
Originally Posted by Nitro212 View Post
but that method only works for storing attachments on the db? what if i want to store them on file system in another server.. will that still work?
yes it does work with file system in fact its only for file system attachment storage

i have this working and its doing really well but as i have posted on vbulletin.com there is a few cookie issues i am experiencing but i will find the reason sooner or later.

but it works 100%
__________________
Digitalworldz Satellite Cable TV Forums
Cable, Satellite, Consoles, Mobile Phones, Audio Visual, and general chat
Reply With Quote
  #41  
Old 17 Mar 2008, 18:57
heeroyun heeroyun is offline
 
Join Date: Jan 2008
How can I store the attachment on the file system instead of the db ?
Reply With Quote
  #42  
Old 17 Mar 2008, 19:03
ferreo ferreo is offline
 
Join Date: Nov 2004
Originally Posted by heeroyun View Post
How can I store the attachment on the file system instead of the db ?
vB Admin Control Panel - Attachments - Attachment Storage Type - Move Items from Database into File System

--------------- Added 17 Mar 2008 at 19:07 ---------------

Originally Posted by Zi55 View Post
First thanks too much scotty for the way
Did anyone try this way in seperate attachment server ?
and are it have any bugs etc .. ?
Thanks ,
Zi55

I am going to try this out today and will let you know if I succeed.

Last edited by ferreo; 17 Mar 2008 at 19:07. Reason: Auto-Merged DoublePost
Reply With Quote
  #43  
Old 20 Mar 2008, 08:42
Zi55 Zi55 is offline
 
Join Date: Dec 2006
Anyone fix cookies problems ??
Reply With Quote
  #44  
Old 21 Mar 2008, 22:05
Golzarion's Avatar
Golzarion Golzarion is offline
 
Join Date: Jan 2008
Real name: Mohsen
Arrow attachment out of database & ch mode777 security?

well, If I want to move attachments to the folder instead of database ..... I have to make a folder change mode 777 and also I have to disable safe mode ...

Aren't these dangerous ? or risky ?

how can we secure folder ch mode 777 ?

can we have this folder on root ? or secure it by using htaccess file?
Reply With Quote
  #45  
Old 25 Mar 2008, 08:59
amcd amcd is offline
 
Join Date: Oct 2004
You can have the attachments folder outside your webroot. It doesn't really have to be chmod 0777. Just make sure the webserver/php user has full access to it.
__________________
eXBii.com - Indian community
no XB no fun know XB know fun !
Reply With Quote
Reply

Similar Mod
Mod Developer Type Replies Last Post
vb3 Attachments - Including Multiple Attachments Option rake vBulletin 2.x Full Releases 273 24 Sep 2006 05:10
Private Attachments! (Attachments in Private Messages) Chen vBulletin 2.x Full Releases 117 22 Jan 2004 19:35



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 17:45.

Layout Options | Width: Wide Color: