在 LAMP/WAMP 上使用 Drupal 创建多个站点
我对如何使用 Drupal 为 WAMP 或 LAMP 安装创建多个站点感到困惑。
我目前在以下目录中完成了所有设置和 Drupal 设置:
/var/www/drupal-7.12 c:/wamp/www/drupal-7.12
当我从浏览器访问这些文件夹时,我可以修改和创建网页内容。
在我看来,默认的 Drupal 文件夹是我唯一可以在其中创建网站的文件夹。
我的问题是:如果我需要通过这一 Drupal 安装创建多个站点,我该如何实现呢?
例如:
c:/wamp/www/mysite1 c:/wamp/www/mysite2
谢谢!
I am confused as to how I can use Drupal to create multiple sites for a WAMP or LAMP installation.
I currently have everything setup and Drupal setup in the following directories:
/var/www/drupal-7.12
c:/wamp/www/drupal-7.12
When I access these folders from the browser I am able to modify and create content for my webpage.
It would appear to me that the default Drupal folder is the only one I can create my website in.
My question is: if I have multiple sites that I need to create with this one Drupal installation, how can I achieve it?
For example:
c:/wamp/www/mysite1
c:/wamp/www/mysite2
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
本文档将解释如何从同一代码库运行多个站点 http://drupal。 org/documentation/install/multi-site。
如果您的站点将共享一些常见元素(例如用户),这也可能会有所帮助:http://drupal.org/node/ 201673
This document will explain a bit on how to run multiple sites from the same code base http://drupal.org/documentation/install/multi-site.
If your sites will share some common elements like users, this might also be helpful: http://drupal.org/node/201673
Drupal.org 上可能有更多关于该主题的文档,但我能告诉的大部分内容都可以在以下文件中找到。请务必阅读这些文件中的注释。
[Drupal 根目录]/sites/example.sites.php
和
[Drupal 根目录]/sites/default/default.settings.php
一般来说,Drupal 6 的工作方式是您需要为每个站点创建子目录站点目录。这样你就会有一个如下所示的目录结构:
我想 D7 会保留相同的结构,但我还没有它看起来像sites.php 文件提供了可用于映射的域名和站点目录的映射。 Drupal,如果找不到合适的匹配项,将默认为sites/default。
虽然它是针对 Linux 的,但这也可能是查找多站点信息的好地方:
http://drupal.org/node/1114158
There may be more documentation written on the subject at Drupal.org, but most of what I can tell can be found in the following files. Be sure to read the comments in these files.
[Drupal Root Directory]/sites/example.sites.php
and
[Drupal Root Directory]/sites/default/default.settings.php
In general, the way Drupal 6 worked is that you needed to create subdirectories for each of your sites in the the sites directory. So that you would have a directory structure that looks like:
I would imagine that D7 keeps this same structure, but I haven't yet It looks like the sites.php file provides a mapping of domain names and site directories that you can use to map. Drupal, will default to sites/default if it can't find an appropriate match.
While it's targeted toward linux, this might be a good place to find multisite info as well:
http://drupal.org/node/1114158