Warning: Undefined array key "HTTPS" in include() (line 29 of /opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php).
include('/opt/www/fdv2/drupal.stage/web/sites/default/settings.local.php') (Line: 4)
require('/opt/www/fdv2/drupal.stage/web/sites/drupal001.net/settings.php') (Line: 145)
Drupal\Core\Site\Settings::initialize('/opt/www/fdv2/drupal.stage/web', 'sites/drupal001.net', Object) (Line: 1099)
Drupal\Core\DrupalKernel->initializeSettings(Object) (Line: 701)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
Opcache 配置問題 - Drupal大学 - Drupal问答论坛
首页 / 帖子
Opcache 配置問題

小弟最近在練習安裝Zend-Opcache,當我安裝完成以後,進入Drupal 網站會發生 Page not found這個問題 謝謝各位幫忙


以下是我的安裝步驟:伺服器:Ubuntu12.04.LTS

Apache2+Mysql+Php5


1.sudo apt-get install -y php-pear
2.sudo apt-get install -y build-essential php5-dev
3.sudo pecl install zendopcache-7.0.3


我在/etc/php5/con.d 底下新增了一個Opcache.ini 

zend_extension=/usr/lib/php5/20090626+lfs/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

然後重新啟動 apache跟php5-fpm

輸入php -V

PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:16:30)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies

顯示有安裝 Zen Opcache V7.0.3




1个答案
YOYO
发布于:2014-12-15 11:47

个人建议两点:

1. Not found 会不会是.htaccess的问题或者.htaccess没有被加载?

2. 找不到问题,可以把fpm换成php_mod试试,个人觉得php_mod更稳定一些。