Drupal7安装出现Warning: ini_set() [function.ini-set]错误

错误如下 :
Warning: ini_set() [function.ini-set]: A session is active. You cannot change the session module’s ini settings at this time in drupal_environment_initialize() (line 499 of /home/mouserot/public_html/domain.com/d/includes/bootstrap.inc).
需要修改
php.ini文件里面成session.auto_start = 0

Drupal7的PHP设置推荐

Setting: session.cache_limiter = nocache

Setting: session.auto_start = 0

Setting: expose_php = off
Reason: Shows current PHP version in all header requests, security disclosure, see here
Example: X-Powered-By: PHP/5.3.8

Setting: allow_url_fopen = off
Reason: This is a security issue: see here

Setting: magic_quotes_gpc = off
Reason: Forces quotes in variables – This feature has been deprecated as of PHP 5.3.0 and removed as of PHP 5.4.0.

Setting: register_globals = off
Reason: Security issue – having this enabled subjects PHP variables to input from any source:
This feature has been deprecated as of PHP 5.3.0 and removed as of PHP 5.4.0.

Setting: display_errors = Off
Reason: Hides errors output to display (website) we want to send to log file instead.

Leave a Reply