![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
Wordpress quiestion! MASS install? Heeeeeeeeeeeeelp
here's the story - I have 30 domains on the SAME host, can I install wordpress on all of them but use only ONE database?
What happens right now is I have to add database request for each one of them, then wait for the host to add the databases, then upload to each domain and so on.. I'm 99% sure that this can be done like blog one has tables with prefix 1 eg 1wp_posts, 1wp_comments, then blog 2 has a prefix 2 etc Anyone done it? thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
|
you can use only one database
in wp-config.php there's a setting for table prefix $table_prefix = 'wp_'; // Only numbers, letters, and underscores please! all you need to do is change it and there you go...
__________________
Make a bank with Chaturbate - the best selling webcam program ![]() ![]() ![]() Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!! PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email: ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Nov 2003
Location: ThatOneProgram.com
Posts: 9,898
|
The answer is yes, but it you use one database, you'll be limited to the plugins and template of that ONE database.
Also, you'll need to maintain one Admin section. Content on each blog would obviously be the same as well.
__________________
Want to promote SUCCUBUS? Click HERE!!!! | Want to buy SUCCUBUS? Click HERE!!!! Yeah, yeah, you know, That One Program! | Want to trade links with StompBunny.com? Loryn (3:16 PM): I love it, just as long as we keep the bedroom door closed from all ears then we can have throw down hard core sex that makes us money haha fuck it we can have sex on money never did that before |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,240
|
http://www.optiniche.com/blog/392/mu...ngle-database/
http://sitening.com/blog/how-to-easi...one-code-base/
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Carpe Visio
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,052
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Too lazy to set a custom title
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
|
Quote:
thanks the second link looks like exactly what I need but that code looks a bit weird to me (don't know php) Code:
// You can have multiple installations in one database if you give each a unique prefix $domain_list = array(); // auto database name $domain_list["yourdomain.com"] = ??; $domain_name = preg_replace(?/^www\./?, ??, $_SERVER["SERVER_NAME"]); if (array_key_exists($domain_name, $domain_list)) { $table_prefix = $domain_list[$domain_name]; if (!$table_prefix) { $table_prefix = ?wp_? . md5($domain_name); } } else { print ?Unknown error?; exit; } $domain_list = array(); like $domain_list = array(mydomain.com, mydomain2.com, mydomain3.com); ?? or just use the code as it is thanks |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
MOBILE PORN: IMOBILEPORN
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
|
Quote:
$domain_list = array('domain.com', 'domain2.com', 'domain3.com'); |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Join Date: Jan 2006
Location: Gringo in Puerto Rico
Posts: 4,197
|
if you use a lot of plugins you could run into some bugs, but someone already pointed that out. If they are pretty basic installs you'll be find as long as you change the prefix.
__________________
OV Tube - Tube Script Software |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
ICQ: 197-556-237
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
|
Hope you can fixed your problem
__________________
I'm just a newbie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Vidi Vici Veni
Industry Role:
Join Date: Nov 2002
Posts: 6,308
|
Wordpress MU...learn it, love it.
|
![]() |
![]() ![]() ![]() ![]() ![]() |