Posts Tagged ‘configure’

ThinkPHP cofigure (配置文件)

April 25th, 2013

* 在首页定义 define(‘APP_DEBUG’, TRUE); 的情况下:
在Application/Conf/config.php中 定义 ‘APP_STATUS’ => ‘debug’, 或者 ‘APP_STATUS’ => ‘production’, 会加载Application/Conf/debug.php 或者 在Application/Conf/production.php. 在这两个文件中可以定义配置覆盖config.php中的配置。

* 在首页定义 define(‘APP_DEBUG’, FALSE); 的情况下:
Application/Conf/config.php中定义’APP_STATUS’无效, 因此debug.php和production.php都不会加载.
系统只会将config.php编译至 Application/Runtime/~runtime.php 中.

configure mail server EXIM on debian

July 29th, 2011


use the command:

dpkg-reconfigure exim4-config

and follow the instructions.

Error handle

If there is an error message saying:

ALERT: exim paniclog /var/log/exim4/paniclog has non-zero size, mail system possibly broken ... failed!
You can fix it by simply removing the log file by:
rm /var/log/exim4/paniclog
And then restart the server:
 /etc/init.d/exim4 restart