你在这里

Windows 系统下的下载说明

原文链接:http://drupal.org/node/557898

预备知识

  • 处理解压缩后缀名为.tar.gz文件的程序。.tar.gz不是Windows默认支持的压缩格式。这篇教程假定你已经下载并安装了免费的解压工具<a href="http://www.7-zip.org" rel="nofollow">7-Zip</a>来解压.tar.gz文件。当然许多其他的文件压缩工具也是可以使用的。

下载Druapl

  1. 项目下载页面,找到你想下载的Drupal版本。在本例中,选择'官方发布'下的第一个Drupal 7版本,单击'下载'。保存下载的文件 (不要用其他程序打开它。)
  2. 解压缩文件。对着.tar.gz文件右击,选择 7-ZIP >> Extract here(解压到这里).右击解压出来的.tar文件并重复刚才的操作。现在你可以看到最终解压出来的Drupal文件夹了。把这个文件夹放到你想放的地方。

    注意:如果你把文件都解压到了一个文件,而不是解压到你的网站文件夹下,请复制这个文件夹里的Drupal文件夹到正确的web文件夹下,而不是剪切/黏贴(这将保证文件会为web服务器继承合适的权限。)

    注意: 如果你使用的是Apache而不是IIS请跳过以下2步。

  3. 创建文件文件夹。在sites/default文件夹下,创建一个文件夹命名为files并且为IIS_WPG (IIS6) or IIS_IUSRS (IIS7)赋予修改它的权限。
  4. IIS7: 创建/修改 web.config文件。Drupal分发版自带了.htaccess文件用于*nix; IIS7用户应该为你们站点把这个文件转换成web.config文件。如果你是使用IIS Manager来创建一个新的站点,在你站点的root目录下会存在一个基础的web.config文件。修改这个文件就像下面这个例子:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webserver>
  <!-- Don't show directory listings for URLs which map to a directory. -->
    <directorybrowse enabled="false">

    <!--
       Caching configuration was not delegated by default. Some hosters may not delegate the caching
       configuration to site owners by default and that may cause errors when users install. Uncomment
       this if you want to and are allowed to enable caching
     -->
    <!--
    <caching>
      <profiles>
        <add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
        <add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="14:00:00" />
      </profiles>
    </caching>
     -->

    <rewrite>
      <rules>
        <!-- rule name="postinst-redirect" stopProcessing="true">
          <match url=".*" />
          <action type="Rewrite" url="postinst.php"/>
        </rule -->

        <rule name="Protect files and directories from prying eyes" stopprocessing="true">
          <match url="\.(engine|inc|info|install|module|profile|test|po|sh|.*sql|postinst.1|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
          <action statuscode="403" statusdescription="Access is forbidden." statusreason="Forbidden" substatuscode="0" type="CustomResponse">
        </action></match></rule>
        <rule name="Force simple error message for requests for non-existent favicon.ico" stopprocessing="true">
          <match url="favicon\.ico">
          <action statuscode="404" statusdescription="The requested file favicon.ico was not found" statusreason="File Not Found" substatuscode="1" type="CustomResponse">
        </action></match></rule>
                <!-- To redirect all users to access the site WITH the 'www.' prefix,
                http://example.com/... will be redirected to http://www.example.com/...)
                adapt and uncomment the following:   -->
                <!--
        <rule name="Redirect to add www" stopProcessing="true">
          <match url="^(.*)$" ignoreCase="false" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^example\.com$" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" />
        </rule>
                -->
                <!-- To redirect all users to access the site WITHOUT the 'www.' prefix,
                http://www.example.com/... will be redirected to http://example.com/...)
                adapt and uncomment the following:   -->
                <!--
        <rule name="Redirect to remove www" stopProcessing="true">
          <match url="^(.*)$" ignoreCase="false" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^www\.example\.com$" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="http://example.com/{R:1}" />
        </rule>
                -->
        <!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. -->
        <rule name="Short URLS" stopprocessing="true">
          <match ignorecase="false" url="^(.*)$">
          <conditions>
            <add ignorecase="false" input="{REQUEST_FILENAME}" matchtype="IsFile" negate="true">
            <add ignorecase="false" input="{REQUEST_FILENAME}" matchtype="IsDirectory" negate="true">
            <add ignorecase="false" input="{URL}" negate="true" pattern="^/favicon.ico$">
          </add></add></add></conditions>
          <action appendquerystring="true" type="Rewrite" url="index.php?q={R:1}">
        </action></match></rule>
      </rules>
    </rewrite>

    <!-- httpErrors>
      <remove statusCode="404" subStatusCode="-1" />
      <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
    </httpErrors -->

    <defaultdocument>
     <!-- Set the default document -->
      <files>
        <remove value="index.php">
        <add value="index.php">
      </add></remove></files>
    </defaultdocument>
  </directorybrowse></system.webserver>
</configuration>
Taxonomy upgrade extras: 

猜你喜欢