[Drupal学习一]Drupal安装和基本配置

1. 从官方网站上下载drupal-6.16
http://drupal.org/drupal-6.16
2. 将下载的压缩包文件直接解压,放到apache的站点目录中。此时drupal的路径为WEB-SERVER/drupal
3. 访问站点http://localhost:8888/drupal/将进入drupal的安装页面。此时会提醒我们要拷贝重命名.sites/default/default.settings.php为.sites/default/settings.php。 之后刷新页面,继续后续的安装。
4. 在Mysql数据库中建立站点的数据库。此例中取名为drupal_test_site。再返回到drupal安装页面,输入相应的数据库名称及账户信息。点击保存并继续按钮进行数据库的部署。
5. 配置站点信息。包括站点名称 管理员账户信息等,再继续。
6. 如果没有意外,会显示drupal安装成功。

注意:要是想汉化想drupal
(1).先在官网上下载中文语言包,下载之后解压,然后覆盖到已安装的drupal的根目录中、
(2).访问站点Administer -> Site building -> Modules ->将Locale这个模块启用,点击保存按钮
(3).选择语言,将默认设置为ZN。

7. visit the new site.

8. 第三方模块与核心模块
核心模块是在drupal安装之后就drupal自带的一些模块,这些模块可以在Modules中找到并自行启用或者禁用
第三方模块可以从官网上下载 下载之后需要安装到drupal/sites/all/modules中。然后在站点中进行激活配置
如DHTML Menus
具体可以参照drupal/sites/all/README.txt中的说明
9. 添加自定义的菜单(Menu)后drupal会自动添加到Blocks里面去
可在菜单设置中设置菜单的关联 如一级菜单和二级菜单的关联

10. 站点名称、站点口号Slogan等站点的基本信息可以在Site information中设置。在Themes中设置是否显示口号等信息

11. 在durpal中添加Fckeditor
Configuration
-------------------
Note: this instruction assumes that you install FCKeditor in
sites/all/modules directory (recommended).

1. Unzip the files in the sites/all/modules directory. It should now
contain a fckeditor directory.
2. Download FCKeditor from http://ckeditor.com/download. Unzip the
contents of the fckeditor directory in the
sites/all/modules/fckeditor/fckeditor directory.
3. Enable the module as usual from Drupal's admin pages.
4. Grant permissions for use of FCKeditor in
"Administer > User Management > Permissions"
Note: to enable the file browser, read also the
"How to enable the file browser" section.
5. Under "Administer > Site configuration > FCKeditor", adjust
the fckeditor profiles. In each profile you can choose which textareas
will be replaced by FCKeditor, select default toolbar and configure
some more advanced settings.
6. For the Rich Text Editing to work you also need to configure your filters
for the users that may access Rich Text Editing.
Either grant those users Full HTML access or use the following tags:
<a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr>
<br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong>
<font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code>
<cite> <embed> <object> <param> <strike> <caption>.
7. To have a better control over line breaks, you may disable Line break converter
in the chosen filter (recommended).
8. Modify the fckeditor.config.js file to custom your needs (optional).
You may copy the needed configuration lines from the default FCKeditor
configuration settings (sites/all/modules/fckeditor/fckeditor/fckconfig.js),
the lines in fckeditor.config.js will override most settings.
In fckeditor.config.js you may define your own toolbars with selected buttons.
WARNING: clear browser's cache after you modify any of the javascript files.
If you don't do this, you may notice that browser is ignoring all your changes.

12. 可以设置多个主题,主题都放在sites/all/themes中
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值