Drupal8 安装笔记

记录一下安装过程遇到的一些问题,留给需要的人。

1.项目下载下来,找到项目的sites文件夹,将default.settings.php 复制一份,重命名为settings.php
2.新建一个files文件夹,在sites/default/下
sites/default/files/
3.在files目录下新建translations目录,把汉化包放进去
https://localize.drupal.org/translate/languages/zh-hans
4.设置files文件夹,settings.php 的权限

chmod -R 777 files/
chmod -R 777 settings.php 

5.clean urls
解决办法:检查apache的http.conf,在配置里允许重写:

    #AllowOverride None
    AllowOverride All
#php.ini
LoadModule rewrite_module libexec/mod_rewrite.so

6.打开 op cache
解决办法:先看phpinfo();找到配置文件位置,不存在则新建。
在配置文件里开启op cache
<pre>
[opcache]
opcache.enable=1
zend_extension=opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
</pre>
7.Warning: DateTime::createFromFormat(): It is not safe…
修改php.ini的date.timezone
<pre>
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =
date.timezone = Asia/Shanghai
</pre>
或者:
<pre>
[root@localhost ~]# sed -i "s/;date.timezone =/date.timezone = Asia/Shanghai/g" /etc/php.ini
</pre>

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 135,155评论 19 139
  • Drupal 7 中文安装教程 准备工作下载 Drupal 7:到 Drupal 项目页面下载 drupal 程序...
    米酒真香阅读 1,492评论 0 51
  • Ubuntu的发音 Ubuntu,源于非洲祖鲁人和科萨人的语言,发作 oo-boon-too 的音。了解发音是有意...
    萤火虫de梦阅读 99,677评论 9 468
  • 生活中你一定听过不少这样的话语。 等有了钱,一定要买那件衣服。 等有了钱,一定要去那家餐厅吃一顿。 等有空了,一定...
    徐野阅读 2,866评论 10 18
  • 一、山野漫步见落叶 寻秋闲屣步,霜野落霞晖。 入径早行跣,缘何惊蝶飞。 二、深秋野行 空山断霞落,深处隐调筝。 入...
    梦之旅_926e阅读 183评论 18 18