View Full Version : Image in another server
1q1q1q
Tue 12th Sep '06, 9:29pm
Hello,
I am interested to use vBulletin to host a large forum and I would like to ask whether it is possible to set up the forum like this:
1. Web server
2. Database
3. Image server
I want to have a separate server for image because we want to
1. decrease the load in the web server
2. saving money on bandwidth by putting the server in a host with cheaper bandwidth.
Thanks
Pang
Colin F
Wed 13th Sep '06, 4:47am
Yes, that's possible.
xjuliox
Thu 14th Sep '06, 3:03am
I have vbulletin in one hosting account and I have another hosting account from another company. Can i set up vbulletin to use the second account to upload files to? If so how can I do it?
Colin F
Thu 14th Sep '06, 7:37am
What kind of files?
Lenni
Thu 14th Sep '06, 8:28am
Pictures... Would be interested in having the same question answered. :)
Colin F
Thu 14th Sep '06, 9:04am
The default images can be on a different server by setting the StyleVars. Attachments are a bit more complicated.
Lenni
Thu 14th Sep '06, 9:58am
Would it be possible without code modifications?
Colin F
Thu 14th Sep '06, 10:11am
Accessing files, yes, I'm not sure about actually writing attachments to a seperate server.
Lenni
Thu 14th Sep '06, 10:23am
Would be cool to know that! :)
xjuliox
Thu 14th Sep '06, 2:30pm
Thanks GUYS!
Just what i wanted to know.
Lenni
Thu 14th Sep '06, 10:38pm
I however would still like to know if it is possible to write files to another server with stock vBulletin and if not, if that could be considered for a future version?
Colin F
Fri 15th Sep '06, 5:41am
It can be done, yes.
Lenni
Fri 15th Sep '06, 6:23am
Easy? :D
feldon23
Fri 15th Sep '06, 10:04am
Colin F,
Can you confirm that it is possible to store ATTACHMENTS on another server other than the Web Server? If so, is this done with symlinks or some other method?
Colin F
Fri 15th Sep '06, 11:17am
I can confirm that it can be done, but I don't know how. I just heard the devs say it can be done.
waterwheel
Wed 15th Aug '07, 3:07pm
It can be done, yes.
Go on . . .
I can confirm that it can be done, but I don't know how. I just heard the devs say it can be done.
These http://img522.imageshack.us/img522/1142/qunqyf8.gifdevshttp://img522.imageshack.us/img522/1142/qunqyf8.gif. What did they say? I'm looking into hosting my attachments on a separate server, but can't seem to find a thread on just how to do it. Or where you would start in the AdminCP to so something like this.
ThanksInAdvance,
WW
p.s. Would this be one way to do it? - http://www.vbulletin.org/forum/showthread.php?p=1013364#post1013364 (http://www.vbulletin.org/forum/showthread.php?p=1013364#post1013364)
Quote:
Originally Posted by Stargesicht
Can you post a step by step way to do this????
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:
Code:
attachment.php
global.php
newattachment.php
copy the following files in root\includes:
Code:
class_core.php
class_dm.php
class_dm_attachment.php
class_hook.php
class_image.php
class_upload.php
config.php
functions.php
functions_editor.php
functions_file.php
functions_forumlist.php
functions_log_error.php
functions_misc.php
functions_newpost.php
init.php
go to the templates section of your board:
replace all occurrences of
Code:
attachment.php
with
Code:
http://attachment.yourdomain.com/attachment.php
and
replace all occurrences of
Code:
newattachment.php
with
Code:
http://attachment.yourdomain.com/newattachment.php
last step:
add a replacement variable to all your styles:
Code:
http://www.yourdomain.com/
with
http://attachment.yourdomain.com/
this last step is for the "attach" tag
delete all your cookies (maybe via filesystem) and test the installation.
have fun http://www.vbulletin.org/forum/images/smilies/smile.gif
Mickie D
Tue 26th Feb '08, 11:22am
i can confirm that the above way works :)
but there is an issue which i am trying to trouble shoot and the problem is that some members switch over just fine with no issues but some are having login problems and i have told them to clear cookies and they are still having the same problem
the last part where it says delete all your cookies i presume it is talking about on your own machine because there is no cookies stored on the servers ??
but it works very well for 90% of my members and you do notice the difference with images and attachments all served away from the php webserver.
i will keep looking into this and if i can find out why allot of them are having the login problem i will report it back here so it can help others
Regards
Mickie D
Freezerator
Tue 26th Feb '08, 12:01pm
With all due respect, but it isn't possible to host attachments on another webserver without to modify the code to vbulletin.
That it is a wanted feature is beyond discussion :)
Mickie D
Tue 26th Feb '08, 3:36pm
you do not modify any code ???
you edit templates and if you use the replace feature (carefully) then its very easy to implement in a few minutes
but becareful if you will use the replace because you will need to find how the attachment.php is found
ie
if you replace "attachment.php" with
"http://attachments.yourdomain.com/attachment.php"
you will also end up with "newhttp://attachments.yourdomain.com/attachment.php"
for the newattachment.php parts
but very easy to install i am just having some issues with the cookies on a few members?
vBulletin® v3.8.0 Beta 3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.