Anything's Possible
Yet Another Multi-Site Manager
This plugin basically allows you to host blogs on multiple domain names while maintaining one WordPress MU main site.
For example, the main site could be example.com but users will also be able to sign up for blogs on example.net, example.org or any other domain name that you choose to add.
- All the sites will have the same settings
- No extra blogs/tables are created for the additional domain names
- All blogs will be viewable on the Site Admin blog list
Alternatively, if you would like to request a feature and/or report a bug, please visit the forum or the trac repository. You will have to login with your WordPress.org username and password to access these.
Known Issues/Limitations
- Remote login does not work with this version
- Only tested with VHOST installs in root directory
Download
yet-another-multi-site-manager.0.1.1.zip
If you download this plugin (as I hope you will) please drop me a line at joe@hazardcell.com or via the contact form with feedback/suggestions/complaints/bugs/your website URI/just to say hi!
Installation
1. Create a new directory in /wp-content/plugins/ called yamm.
2. Upload yet-another-multi-site-manager.php & yamm-signup.php into the directory you just created
3. Upload sunrise.php to /wp-content/. If there already is a sunrise.php file there you will have to merge the two files.
4. Edit wp-config.php and uncomment the SUNRISE definition line: define( 'SUNRISE', 'on' );
5. As the site admin activate the plugin through the ‘Plugins’ menu in WordPress MU.
6. Go to Site Admin->Yet Another Multi-Site Manager and add domain names/change the signup page slug.
NOTE: If you are using the WordPress MU Domain Mapping plugin, use dm-sunrise.php instead. You will have to rename it sunrise.php once you have moved it to /wp-content/.
License
Copyright © 2009 Joseph Jacobs
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Changelog
0.1.1
Changed table names to variables to accomodate custom table prefixes-
Updated dm-sunrise.php for compatibility with WordPress MU Domain Mapping 0.4.3
0.1
Initial public release
about 3 months ago
“Only tested with VHOST installs in root directory”
I have two domain names, on one hosting account. Both domains are pointing to active web sites. So I can’t install WordPress in the root for either of those domains.
To get a VHOST install in root directory, do I have to purchase another domain name? Or will a sub-domain work?
Once I have WordPress (3.0? MU?) installed in root directory, does it manage blogs in a sub-directory? If I install in mydomain.com/ can I manage blogs in mydomain.com/blog2, myotherdomain.com/blog/ and mythirddomain.com/blog?
about 2 months ago
I’m guess you could run wordpress from a subdomain as long as you have a way of pointing all the domains to that subdomain. The easier way to do it would be on install wordpress on one domain name and run all the others on ubdomains/subdirectories of that domain name. Use Donncha’s Domain Mapping plugin to point the domain name you want the subdomain/subdirectory.
As for running other blogs in subdirectories, like I mentioned I haven’t tested it with subdirectory installs so I really don’t know whether it would work. Also I don’t think this version will work with the latest version of wordpress just yet. I’m working on an update that I should release later this month.
about 3 months ago
My web hosting provider (http://www.lernerconsult.com/recommends/lunar ) has automated setting up parked domains and add-on domains, so not everyone there knows how to set up or modify VHosts on their Apache servers.
They recognize that many customers will want to set up multiple domain/multiple blog installations of WordPress. So they are researching how to set it up, and how to move people’s existing domains as needed to work with WordPress setups.
I have domain1.com in public_html/, and domain2.com in public_html/domain2/.
Talking with them, seems like a good approach is to move domain1.com to public_html/domain1/, and install WordPress 3 in public_html/, and access WordPress admin through the provider’s server URL (http://server.provider.com/~username/) Would that work? Or set up an “only known on this server” name for VHost to use? Or would I have to get an additional domain name, for use by WordPress?
How about a description and detailed instructions for how a hosting provider with customers having common setups, can change the setup of existing web sites, install Wordpress 3 with your plugin?
about 2 months ago
The easiest way to do this would be to install wordpress in root say using domain1. To have a VHOST install you need wildcard dns enabled for domain1. There are loads of instructions on the web on how to do this. Just ask your hosting provider they should be able to do it.
Once that is done and wordpress is installed in VHOST mode, set up another blog on wordpress in a subdomain of domain1. Then park domain2 on top of domain1 and use Donncha’s Domain Mapping plugin to map that domain name to the blog you want. That should do it!
If you want you could set up a subdirectory install of wordpress, set up a blog in a subdirectory using wordpress and use the plugin to point domain2 to the blog.
about 2 months ago
You’ve done all this work to write a plugin. But without instructions, we can’t use it. Take a few minutes and write instructions.
What does “set up another blog mean? (Separate installation of WordPress files? Use WP3’s Superadmin, Sites?) What does “park domain2 on top of domain1″ mean? (Same location? Subdomain? Subfolder?)
Please get clear, as in “use a specific example”. What VHost commands? What addresses do domain1 and domain2 get mapped to?
On an Apache server, does my main domain (with large website), currently mapped to public_html, need to be moved to a subdomain (public_html/domain1)? To a subfolder (public_html/subfolder1)?
Does WordPress3 need to be in public_html to use your plugin? What are the requirements, in terms of domains or subdomains or subfolders, for the location of the WordPress files?
about 2 months ago
Sorry for the late reply. I also apologize about the documentation. Writing plugins is something that I do in my free time and I haven’t had very much of that lately hence the lack of documentation.
Firstly, please note that the current version of the plugin (0.1.1) does not work on WP3.0. There should be another release later this month/early next month with support for WP3.0. As mentioned in the readme, I haven’t tested this plugin on subdirectory installs or with WP installed in any directory other than the root directory. In theory, it should work but again I have to stress that I have not tested it in these scenarios so I am not sure what will happen.
Regarding the setting up VHOSTS, it is not something you can do from within cPanel or Plesk. Your hosting provider will have to manually set up wildcard subdomains for your account and very few hosting providers allow you to do this.
However I am not sure that this plugin is what you are looking for. What this plugin does is allow you to run a blogs on subdomains of say domain1.com, domain2.com and domain3.com with WP installed on just one of the domain names (eg. domain1.com). WP would have to be installed on the root of domain1.com. domain2.com and domain3.com will have to be parked on top of domain1.com (if you are not sure what this means Google “domain parking”)
In your case what I think you are trying to do is run WP blogs on domain1.com/blog and domain2.com/blog without installing WP in the root directory (ie. public_html). The easiest method would be to run to separate installations of wordpress in the subdirectories. That would definitely work. Your method could work as well although you would need to use Donncha’s domain mapping plugin to map the domains to the blogs. Either way, my plugin is definitely not what you want.
about 2 months ago
Hi Joe,
thanks for a great plugin. Could you please tell me if what I want to do can be achieve with your plugin or with another one (in that case, which?).
Here’s my case:
I have 2 different and independent domains: domain1.com and domain2.com.
Neither one is a subdomain of the other.
Each domain has their own look and feel. However, they both have the SAME content. So Article-A is displayed in both sites, only with a different skin.
Is your plugin what I need in order to have domain1.com and domain2.com share the same content.
From what I know (and I’m not a techie) this would be the same as having domain1.com and domain1.net, which is the sample use of your plugin.
THANKS!
about 2 months ago
Unfortunately the current version of this plugin will not do what you want. My plugin will redirect domain2.com to domain1.com so content and theme will be the same. Sorry!!!
about 2 months ago
Thanks for the prompt response.
Do you know what plugin will let me do that?
Thanks!!!
about 2 months ago
I don’t know of any plugin in particular but GLearners solution would do the trick. You woul hve to write a lot of the code yourself though.
about 2 months ago
@SM, might be simpler to look for the php code to select which theme to display. Park domain2.com where domain1.com is (any hosting provider can do that).
This php code (enclose in opening and closing statements, of course) detects which domain name was used:
$servname = getenv (“SERVER_NAME”);
if ($servname == “domain2.com”) {
// set theme one way
} else { // set it the other way
}
But, what do you need two domains with same content for?
There are plugins to allow you to selectively duplicate a posting from one blog to another in your WP3.0 multi-site, for example Multipost MU (http://wordpress.org/extend/plugins/multipost-mu/)
about 2 months ago
Thanks! will try that. seems like a good solution. I need to duplicate content over sites for marketing purposes.
about 2 months ago
Thanks, great plugin. Finally running a Multi-User WordPress with multiple domains -and- dedicated domains now!
Only one annoying problem though. The new signup doesn’t ask for a password and sends out mail telling the user should use the password given at signup.
Any idea how to fix this?
about 2 months ago
Sorry mate but that’s the way WordPress is built. Maybe it has changed in 3.0 but I’m not sure. If it has I will change that for the next release.
about 2 months ago
I guess it has changed. Now users are supposed to be able to enter the desired password when signing up. I solved it by installing the cosmic-bp-user-signup-password plugin. Now there is only a problem if the user doesn’t fill in the password field, because there’s no check for that. But I can live with this situation.
about 2 months ago
I’m Excellent article.I decide to put it to use one of these for you days.Thank this.To sharing your success!
about 2 months ago
Hello admin so when should we expect the plugin to be released now?
about 2 months ago
will have to try your multi-site manager and see how it works.
about 1 month ago
I love the plugin. I want the new version for 3.0 as soon as it is available. Please add a comment on this post when it is ready so I get notified and can check it out.
Thanks!
Jeff
about 1 month ago
It seems useful .I am waiting for upgraded plugin for 3.0 .
about 1 month ago
Wordpress released it’s new version 3.1 and we love to have this plugin updated.