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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-13-2009, 07:37 AM   #1
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
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
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 08:43 AM   #2
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
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:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 08:46 AM   #3
newbreed
Confirmed User
 
newbreed's Avatar
 
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.
__________________

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
newbreed is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 08:47 AM   #4
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by newbreed View Post
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.
Fail.

Quote:
Originally Posted by HomerSimpson View Post
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...
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 08:54 AM   #5
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136
Quote:
Originally Posted by HomerSimpson View Post
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...

Thanks!
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 09:01 AM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 55,239
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
fris is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 09:24 AM   #7
candyflip
Carpe Visio
 
candyflip's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: New York
Posts: 43,052
Quote:
Originally Posted by newbreed View Post
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.
Sorry man, but you're totally off on this one.
__________________

Spend you some brain.
Email Me
candyflip is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 09:33 AM   #8
Antonio
Too lazy to set a custom title
 
Antonio's Avatar
 
Join Date: Oct 2001
Location: Spartaaaaaaaaa
Posts: 14,136

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;
}
do I add every domain HERE:
$domain_list = array();

like

$domain_list = array(mydomain.com, mydomain2.com, mydomain3.com);

??


or just use the code as it is

thanks
Antonio is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 09:48 AM   #9
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
Quote:
Originally Posted by Antonio View Post
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;
}
do I add every domain HERE:
$domain_list = array();

like

$domain_list = array(mydomain.com, mydomain2.com, mydomain3.com);

??


or just use the code as it is

thanks
yeah

$domain_list = array('domain.com', 'domain2.com', 'domain3.com');
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 10:34 AM   #10
teg0
Confirmed User
 
teg0's Avatar
 
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
teg0 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 11:16 AM   #11
tranza
ICQ: 197-556-237
 
Join Date: Jun 2003
Location: BRASIL !!!
Posts: 57,559
Hope you can fixed your problem
__________________
I'm just a newbie.
tranza is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-13-2009, 12:15 PM   #12
Z
Vidi Vici Veni
 
Z's Avatar
 
Industry Role:
Join Date: Nov 2002
Posts: 6,308
Wordpress MU...learn it, love it.
Z is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.