This is a simple howto for moving single coded website to a multi-site environment. I had a few White Screens Of Death (WSOD) before I gained the wisdom to write this (and hopefully help others).Read more
My setup: Windows XP, Drupal 7, XAMPP default installation.
1) Extract D7 to a directory on your harddrive of your choosing. We will call it the DocumentRoot ("docroot" for short) directory. If you do not want to create a unique folder on your harddrive, and you just want to use the default (c:/xampp/htdocs/xampp) as your docroot, then you should extract D7 to that directory (c:/xampp/htdocs/xampp). If you decide to do that, I think that you can just skip step 2, but I have not tested that theory, and I'm only about 30% sure that you can skip step 2. I would recommend completing step 2.
2) Use vHosts and hosts to create multiple localhost-only domains:
- example_site.com is mapped to 127.0.0.1 in hosts (c:/windows/system32/drivers/etc/hosts). Here's my working example, which feels very safe and reliable to me:
#You will not be able to access your website except locally (not at other people's houses).
#If the URL is already owned, you will no longer be able to browse to that URL without getting your site.
Documentation for module http://drupal.org/project/domain_xmlsitemap .
This module helps you adding a diffenrent sitemap for every domain configured via Domain Access.
(Placeholder project for the contrib module to integrate the XML sitemap and Domain Access modules together.)
After enabling the domain_xmlsitemap-module i can add new sitemaps here:
admin/config/search/xmlsitemap -> 'Add new XML sitemap'
On the following page there is the option to select a domain-entry.
admin/config/search/xmlsitemap -> check the new domain entry -> 'Update cached files'
i found a sitemap.xml for the domain-entry.
This is a container to store instructions, information and pointers to multi-site modules.
This guide assumes you have the following installed and running:
- Microsoft's Internet Information Services web server 6 or 7
- PhP 5.2 or higher with PDO dlls enabled.
- The IIS FastCGI Module (IIS6 version here - in IIS7 it's an integrated module that needs to be enabled).
- If you want clean urls, you'll also need the URL Rewrite module (IIS7) or a third-party url-rewrite module set up at some point, though you can do this afterward.
- Install a site. This will be the parent site, providing the code-base for all the child sites.
IIS7: be sure your parent site has a web.config file (see this for more info). Child sites will use the settings in the parent site's web.config file. To override these settings, put a web.config file with just the settings you want to override in the child site's folder (eg sites/site2.com/).
This page describes how to set up a multi-site Drupal install using Windows and Apache, via the WAMPServer package. The instructions cover how to set up live production sites as well as local development sites, and setting up new sites as well as making copies of existing sites.
Topics covered include: Installing and configuring WAMPServer, configuring and troubleshooting Apache and MySQL, creating databases, users and permissions in PHPMyAdmin, creating DNS entries and/or hosts file entries, creating sites directories, and installing multiple Drupal instances.Read more