![]() |
Attachments
How do large boards handle attachments? Right now I have about 7GB of attachments in my file system. I was just curious how others deal with this issue. Especially if you have more than one web server... :confused:
|
We have about 1.5 GB in the DB, but i do get the feeling, that we should change that.....
during the normal process that's not a problem but during upgrades that table is most of the time responsible for the timeouts |
I have attachments on a separate server with some minor hacks to the attachment php files and templates.
|
Anyone with more than a few hundred MB of attachements should move them out of the DB and into the file system. Personally I would always use the file system anyway, I don't think attachments belong in the database (the only time it's useful to have them in the DB is when moving server)
|
Quote:
|
Quote:
|
<a href="http://mysqldump.azundris.com/archives/36-Serving-Images-From-A-Database.html" target="_blank">http://mysqldump.azundris.com/archiv...-Database.html</a>
This is a very good read for anyone that would like more "exact" information on why Files stored in Database for a busy site is not a good idea; as well as a compromise. Keep the master storage in the Database, while providing a local cache in the file system. |
Quote:
|
Quote:
|
well if the forum powered it all (on the backend) it wouldnt be a violation it still would be 1 copy (just not in the directory structure they supplied)
|
Quote:
|
Quote:
|
Please explain how I would do this legally? Thanx.
|
Quote:
|
would you explain this please?
Quote:
|
Quote:
thanks |
Quote:
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: Code:
attachment.php Code:
class_core.php replace all occurrences of Code:
attachment.php Code:
http://attachment.yourdomain.com/attachment.php replace all occurrences of Code:
newattachment.php Code:
http://attachment.yourdomain.com/newattachment.php add a replacement variable to all your styles: Code:
http://www.yourdomain.com/ delete all your cookies (maybe via filesystem) and test the installation. have fun :) |
Thank you .
I test it tomorrow But: Quote:
|
Quote:
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. |
hi currently i am hosting on a friend's server. He has given me some space and i also have a server with the shared host Servage.
Re: Scotty's Server Attachments At the moment my website is on the server. at domainName.COM I wish to have my attachments on the Servage Server. as it has a lot of diskspace and bandwidth.... Perhaps under my domainName.NET address. Understand? If there are vbulletin license issues, i am willing to purchase a second copy. Although i have nothing at all at the .net address.. it will be simply to host the files. for my website. What changes would i need to make to the cookies and the other settings to implement this? If you can help me out Scotty or anyone else, it would be really great and special thanks. |
I have a similar request....
I have our website on a server.... Great. Presently it is storing attachments in the database.... Not so great. So, I want to use the vBulletin Attachment Manager to store them elsewhere. To merely put them in a different folder on the forum server is easy.... I modified the Attachments to say "Attachments are currently being stored in the filesystem at ../files" (note... this is the sub-dir I created with appropriate permissions). This works great. So, let's move them to a Different server. I have a different server and can access it via IPaddress. It has a folder under the root called /files, with all the appropriate permissions. So I change the Attachment manager to say Attachments are currently being stored in the filesystem at http://xxx.xxx.xxx.xxx/files No sir... it just doesn't like this... the error message I get is "We attempted to write a test file to http://xxx.xxx.xxx.xxx/files, but we were unsuccessful. Please verify that the web server has write/delete permissions for this path." For the life of me I can't figure out what I am doing wrong. Any help ????? |
http:// isn't a protocol to write files. I think you have to code your own attachment solution to store them on a seperate server.
|
Make sure you copy those attachment files to your PC just in case...
I accidentlly lost my smilies moving to a new server...Thankfully, I backed up the /images & /gallery directories to my pc beforehand...took awhile, but worth it... |
But, they way to move attachments to a another Server with link the attachment.php to the new Domain ist not the best way. For example, what is if the extern server also full?
The best way is, to modify the Forum so, that it stores the Real-URL to The images like: www.forums.de/imagesdir/image.jpg than you can use many HDDs and many Servers. But I don’t now how can I do this Whit the way from “scotty” I can copy al my attachments to the Upload Server, that’s great. But what is, if the HDD full an I but in a new one? Than I have the same Problem as now. GreeTz Snatch |
I use light frontend http server which serve attachments/images and backend server which serve php.
attachment.php with simple hack points frontend where get attachement body and this work. client not give direct link anytime. |
Currently i have 14gigs of attachments..... on a single server.
|
Quote:
Quote:
|
Quote:
|
Max SCSI HDD size is about 145GB.......in Raid10, you are stuck at 278.47 in useable space....if you limit to 4 drives....
four 7200rpm 750GB SATA drives in a Raid10 configuration results in a useable space of 1430.51GB should be sufficient.... |
I mean the Max HDD size on my Server.
|
Quote:
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 ? |
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 |
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.. |
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. |
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 |
Quote:
Did anyone try this way in seperate attachment server ? and are it have any bugs etc .. ? Thanks , Zi55 |
I always have attachments disabled. If anyone really needs to upload anything, they can at my uploading site (Not on the same server)
|
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?
|
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.
|
Quote:
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% |
All times are GMT. The time now is 05:54 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|