国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

在CentOS 7下試驗Drupal 7

2019-11-15 02:01:18
字體:
來源:轉載
供稿:網友
在CentOS 7下試驗Drupal 7

按順序安裝好Apache、MariaDB和php,啟動Apache和MariaDB,創建一個UTF-8字符集的數據庫

> create database if not exists drupal default character set utf8;

在Drupal官網下載Drupal core文件:drupal-7.36.tar.gz

$ tar xzvf drupal-7.36.tar.gz$ cd drupal-7.36

拷貝所有文件到web目錄,包括2個隱藏文件。

# cp -R * .gitignore .htaccess /var/www/html

創建settings.php文件

# cp /var/www/html/sites/default/default.settings.php /var/www/html/sites/default/settings.php

改變web目錄下所有文件的所有者和所屬組群

# chown -R apache:apache /var/www/html/* /var/www/html/.gitignore /var/www/html/.htaccess

防止SElinux搗亂

# chcon -R -t httpd_sys_content_rw_t /var/www/html/sites/default/ /var/www/html/sites/all/modules/ /var/www/html/sites/all/themes/

瀏覽http://localhost開始安裝。

使drupal的.htaccess文件起作用

<Directory "/var/www/html">    AllowOverride All</Directory>

啟用發送郵件支持

  1. 安裝SMTP Authentication Support module。
  2. # setsebool -P httpd_can_sendmail 1

啟用中文環境

  1. 安裝Localization update module。
  2. 開啟Locale module(Localization update module依賴Locale module)。
  3. Configuration -> Languages -> Add language。

安裝常用modules

  1. 安裝Administration menu module,之后disableToolbar module。
  2. 安裝Back To Top module。
  3. 安裝Backup and Migrate module。
  4. 安裝Theme developer module。

安裝CKEditor

  1. 安裝Wysiwyg module,Wysiwyg原生支持CKEditor
  2. 下載CKEditor注意版本有限制,3.6.6版本OK,放到/var/www/html/sites/all/libraries/ckeditor中。

安裝UEditor

  1. 安裝Ueditor for wysiwyg module。
  2. 安裝Wysiwyg module(Ueditor for wysiwyg module依賴Wysiwyg module)。
  3. 安裝Libraries API module(Ueditor for wysiwyg module依賴Libraries API module)。
  4. 下載PHP版本的UEditor,放到/var/www/html/sites/all/libraries/ueditor中。
  5. 打開/var/www/html/sites/all/libraries/ueditor/ueditor.all.js,刪除以下代碼。

    if(holder.id){  newDiv.id = holder.id;  domUtils.removeAttributes(holder,'id');}

安裝Views

  1. 安裝Views module。
  2. 安裝Chaos tool suite (ctools) module(Views module依賴Chaos tool suite (ctools) module)。

安裝Firefox add-ons

  1. 安裝Web Developer
  2. 安裝Firebug

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 彰化市| 山东| 扎赉特旗| 临汾市| 陆丰市| 长乐市| 天峨县| 林芝县| 上饶市| 年辖:市辖区| 伊吾县| 井陉县| 丰台区| 泊头市| 柳林县| 临朐县| 遂川县| 霞浦县| 嘉峪关市| 冷水江市| 马鞍山市| 宝兴县| 龙海市| 广河县| 濉溪县| 云浮市| 改则县| 高台县| 闻喜县| 林州市| 儋州市| 绥江县| 苍溪县| 长沙县| 莱阳市| 长寿区| 梧州市| 仁寿县| 镇康县| 屯昌县| 泰宁县|