Go Back   vb.org Archive > Community Discussions > Forum and Server Management
  #1  
Old 03-27-2009, 12:50 AM
BornMunson BornMunson is offline
 
Join Date: Jan 2005
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default File System on Seperate Server?

I am wondering if it is possible to have my database and file system on a different server then the rest of the forum? I was looking at the config.php file and it looks pretty easy to have the just the database on a different server, but didn't see the option for the file system (uploaded files). If anyone knows if this is possible, please post here.
Reply With Quote
  #2  
Old 03-27-2009, 02:08 AM
ssslippy ssslippy is offline
 
Join Date: Jan 2006
Posts: 877
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Its not possible without modification of the core code.
Reply With Quote
  #3  
Old 03-27-2009, 02:12 AM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by ssslippy View Post
Its not possible without modification of the core code.
Of course it's possible. In fact, commercial environments should operate that way.

In your config.php file, you need to change the following variables:

Code:
$config['MasterServer']['servername'] = 'localhost';
$config['MasterServer']['port'] = 3306;
Change "localhost" to "whatever.com" where your database is held. That will let you have your files and database on different servers.



Likewise you can do the forum path like:
Code:
$config['Misc']['forumpath'] = 'http://www.whatever.com/forum';
However this is not recommended since you will have some serious issues surrounding file permissions. You'll still have to put the files on your server - but when they include the other files it'll pull from the other file server.
Reply With Quote
  #4  
Old 03-27-2009, 02:15 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe the OP is talking about files, as in attachments, and the database on one server, and then the php files on the other server which isn't possible without doing quite a bit of modifying of the vb code.
Reply With Quote
  #5  
Old 03-27-2009, 02:17 AM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, attachments, avatars, etc. - all that stuff can be stored in the DB. But with some tricky .htaccess code one could put the files on a different server entirely.
Reply With Quote
  #6  
Old 03-27-2009, 02:21 AM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sure, you can do that, but then they aren't call 'files'. And, if you are talking about having a two server configuration for your forum, then you shouldn't be storing your attachments/avatars/etc in the database anyway.
Reply With Quote
  #7  
Old 03-27-2009, 02:26 AM
TigerC10's Avatar
TigerC10 TigerC10 is offline
 
Join Date: Apr 2006
Location: Austin, TX
Posts: 616
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well, I think it's far more advantageous to put the database on a different server than to try and put the files on a different server. I agree with you that it's a silly thing to do - but it is possible.
Reply With Quote
  #8  
Old 03-29-2009, 08:05 PM
zzzru zzzru is offline
 
Join Date: Mar 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Why not to mount all upload-directories using NFS?
Reply With Quote
  #9  
Old 04-07-2009, 09:45 AM
Farstate Farstate is offline
 
Join Date: Mar 2004
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

We have a two server set-up - all the files (including attachments, avatars, etc) are on one server and the database is on another server. You could take this one step further and introduce a third server and mount the attachment, etc directories on the first server, to locations on the third server. A complex alternative though...

If your forum is really big enough to warrant multiple servers, then either looking at a single very highly spec'd server (e.g. twin quad-core, lots of memory), or load balanced solution which appears to you as a single server but has the benefits of actually being multiple servers.
Reply With Quote
  #10  
Old 04-17-2009, 12:15 AM
mac-warez mac-warez is offline
 
Join Date: Oct 2008
Posts: 133
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just get the new server. Then in Config.php change localhost to the new server IP. Simple as that

http://www.vbulletin.com/forum/showthread.php?t=185705
Reply With Quote
Reply

Thread Tools
Display Modes

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


All times are GMT. The time now is 02:48 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
  • Page Generation 0.04485 seconds
  • Memory Usage 2,233KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete