drupal的多站点操作机制multisite

根据drupal的多站点操作机制,可以在同一个网站空间建立无数个网站。

首先确定你的域名,如abc.com efg.com
把这2个域名都指向同一个服务器(本地调试的话修改hosts),服务器上配置到同一个目录, 如你说的drupal,相当于多个域名parking到同一个站点。

新建各站点的数据库,
把sites目录下的default在同级目录下拷贝一份,改名为abc.com,配制该目录下的settings.php连接到相应数据库。只需改数据库链接那一行。
浏览器访问:http://www.abc.com/install.php 安装完成。
把sites目录下的default在同级目录下拷贝一份,改名为efg.com,其他同上,
。。。。。。。。

根据drupal的多站点操作机制,公共的模块放在/sites/all/modules/ 下面,
abc.com专用模块放在/sites/abc.com/modules下。
风格主题的放置方法同上,目录/sites/all/themes
可参考我的一偏drupal手册译文:
Drupal 最佳做法: 文件和目录管理 http://www.linuxchinese.com/books/drupal-handbooks/file-and-directory-ma...

我用过drupal6后再用drupal 5感觉很郁闷,如果需要的模块都有d6版本,不要考虑d5,d5将会在大约8个月后即d7发布后停止active support.
服务器可以使用xamp,IIS不好用, 但是考虑到windows的效率比linux要底30%左右,如果自己有服务器直接装linux,安全性也高。

多个站点之间能用同一账号登录吗?

请问:
多个站点之间能用同一账号登录吗?
ylamyz@yahoo.com

发表新评论

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <i> <b> <a> <em> <strong> <small> <big> <cite> <code> <img> <ul> <ol> <li> <dl> <dt> <dd> <tbody> <th> <table> <caption> <colgroup> <col> <thead> <tfoot> <br> <tr> <table> <td> <span> <p> <h1> <h1> <h1> <h2> <h3> <h4> <h5> <hr> <!--> <ins> <del> <kbd> <quote> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.