Drupal and Wordpress together

Events happening in the community are now at Drupal community events on www.drupal.org.
lrosete's picture

Hello,

Is it possible to have multiple installations of Drupal and Wordpress together on one shared hosting account?
For example these 4 sites together: www.mydrupalsite1.com ,www.mydrupalsite2.com, www.mywordpress1.com, www.mywordpress2.com.

Currently, I have the 2 wordpress sites together on one account. And my two drupal sites together on another account.
But I would like to join the four of them on one account. And I'm worried it might mess up on the index file or something.

I have reviewed the multi-site install docs on this, and none covers this specific situation, if I'm not mistaken.
Plus, the drupal multi-site install docs/discussion in itself is so long, and even looks confusing in the end.

Anyway, I will begin work/fun on this on the weekend (yes still busy with my weekday job right now :-)
I just want to hear from you guys first, what you think.
Or if somebody has already tried it and can point me to the right direction early.

Thank you in advance.

Comments

Short answer is no, but yes if using ugly redirectors

loloyd's picture

I'm guessing you are getting confused on how web servers work and how they can be configured to achieve multi-hosts on a single domain website. In one shared hosting account, you can only do this thing:

  1. drupalsite1.yourdomain.com
  2. drupalsite2.yourdomain.com
  3. wordpresssite1.yourdomain.com
  4. wordpresssite2.yourdomain.com

...and this can be done by configuring your CPanel to point to appropriate sub-directories in your domain account under /public_html. This means you should have these directories under yourdomain.com/public_html:

  1. /drupalsite1
  2. /drupalsite2
  3. /wordpresssite1
  4. /wordpresssite2

If you control your own server hardware and have an IP address assigned to you, then you can register multiple domain names, point these all to that IP address (there are 3rd party solutions for dynamic IP addresses), and you'll have the kind of 4 domain sites on one server scenario that you want, each having their own distinct characteristics. You'll need to be able to know how to configure the zones in your server for this situation. ZoneEdit.com is my 3rd party choice for dns and zoning needs.

Another ugly solution for you is to use redirectors (or web-forwards). I call them ugly because they work essentially like tinyurl.com, so your domain identity vanishes as soon as you get redirected. Some redirector services host your page at your domain name http://www.drupalsite1.com/ and then iframe your site's true addresses. In this manner, at least you'll still always see http://www.drupalsite1.com/ on your browser but the URL may not follow reflectively when you browse inside.

It's possible if your hosting

theflea's picture

It's possible if your hosting account supports multiple domains (many shared hosting doesn't). If it does, you can configure each domain to point to a specific unix folder.

  1. point your domains to the correct name server
  2. if you're using cpanel, configure the add-on domains to point to the correct folders (each folder a separate site)

Multi-site Drupal is another story, but it's not impossible just configure the add-on domain to point to the same Drupal folder and update your Drupal configuration to support multi-site.

That's it no redirection needed.

Multi-site drupal installs

cmcintosh's picture

Multi-site drupal installs are not difficult at all. you will want to setup a vhost entry in your apache configs that points to each sub directory. Then you just copy the default folder and name it as the domain so if you wanted to setup some sites for this:

www.somefun.com
dev.somefun.com
stage.somefun.com

your sites/ directory would look like this:

all/
default/
www.somefun.com/
dev.somefun.com/
stage.somefun.com/

The key to remember is to be specific on some of your module use. If you will have modules that only one site will use i would be best to put it in that site's folder instead of sites/all/modules as you could start running into timeouts on your Module ui page inside the drupal installs.

From my investigation Wordpress has no multisite capability similar to this. in order for multisite to work you need to setup complete installs seperate from each other.

Best bet though would be to

cmcintosh's picture

Best bet though would be to switch to a Virtual Dedicated account, your at the point now that it makes sense to do it. you can get a decent low priced one for around $50 US a month from Amazon hosting, or use godaddy for around the same. Once you go that route install Aegir, You will love how easy it is to spin up new copies of sites.

BTW. I am soon going to be posting hosting services for drupal projects based on Aegir system. Part of the services include custom theme work, ustom module work, and free updates.

Yes it is possible. First is

dzieyzone's picture

Yes it is possible. First is to install your drupal core into your account's public_html. For your drupal websites, instead of using addons domain, use parked domain in adding your drupal domains. This way, all your parked domain will point it to the drupal core install files or to your public_html folder. Simply follow the multisite domain structure for drupal then your finish with your drupal multisite on shared hosting.

For your wordpres, just addons all your domain and extract wordpress files to the said directory. You can also use fantastico to automatically install worpress for your domain.

This will be your folder structure just in case.

public_html/sites/default/settings.php (if you want to use your primary domain here)
public_html/sites/primarydomain.com/settings.php (if you choose to dedicate the domain only access)
public_html/sites/drupaldomain1.com/settings.php (parked domain and a drupal driven website)
public_html/sites/drupaldomain2.com/settings.php (parked domain and a drupal driven website)
public_html/* (other drupal core files)
public_html/wordpressdomain1 (this is where the wordpress installed for addons domain)
public_html/wordpressdomain2 (after adding your domain as addons domain, you can choose either to install manually or by using fantastico)

That's it, just by one web host and your done.

You can also purchase a Php3000/year worth of web hosting rather than going to bluehost or hostmonster. Just send me a message if you are interested.

Jay

This works

Inspector Clouseau's picture

Although I have an issue with one of Drupal site's urls. I see "?q=" in front my URLs, essentially breaking the navigation. I believe this has to do with htaccess but I'm not sure.

it's possible. it depends on

gerold's picture

it's possible. it depends on how do you want to setup your wordpress and drupal - you can either multi-site both drupal and wordpress, and can set them up as separate installs. if you go with separate installs and your hosting is has web-admin panel like cpanel, plesk, etc (except for custom web-admin panels that are not friendly even for sysadmins) then there is no need for tricks to do this. also, i assume you are allowed to host multiple domains for your account.

A little late .....

tigron's picture

I'm chiming in a little late I know. I currently have a multi-site drupal install and added a wordpress site that I want to run as multisite as well. My issue was initially the .htaccess configuration. I was not able to access the wp-admin page at first and I had to add login.php to the .htaccess file in order to access the backend. Is there any advice on the proper configuration as I feel that this isn't correct ?

Hosting

drugonball's picture

Good Day! Does anyone here knows or can offer a good hosting services for a drupal site? Thanks

Yes, in fact I offer a Drupal

cmcintosh's picture

Yes, in fact I offer a Drupal hosting service. We are just in beta phase though so it will be a couple months before things are steady and we will be charging anything. I do appreciate feedback. At the present we rund Drupal 7, with several starter themes and the sweaver theme tool.

http://wembassy.com

Philippines

Group organizers

Group categories

Post category

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: