LINUX.ORG.RU
ФорумAdmin

Сообщения на почту root


0

1

периодически cron шлёт такие письма

From root@virdebian.local  Thu Oct 28 14:09:01 2010
Return-Path: <root@virdebian.local>
X-Original-To: root
Delivered-To: root@virdebian.local
Received: by virdebian.kagaz.local (Postfix, from userid 0)
        id B4FC85CD1C; Thu, 28 Oct 2010 14:09:01 +0400 (MSD)
From: root@virdebian.local (Cron Daemon)
To: root@virdebian.local
Subject: Cron <root@virdebian>   [ -x /usr/lib/php5/maxlifetime ] && [ -d /var/lib/php5 ] && find /var/lib/php5/ -type f -cmin +$(/usr/lib/php5/maxlifetime) -print0 | xargs -n 200 -r -0 rm
Content-Type: text/plain; charset=UTF-8
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
Message-Id: <20101028100901.B4FC85CD1C@virdebian.kagaz.local>
Date: Thu, 28 Oct 2010 14:09:01 +0400 (MSD)

PHP Warning:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0

фрагмент моего php.ini 
###################################
; Safe Mode
; http://php.net/safe-mode
safe_mode = on
###################################
; By default, Safe Mode does a UID compare check when
; opening files. If you want to relax this to a GID compare,
; then turn on safe_mode_gid.
; http://php.net/safe-mode-gid
safe_mode_gid = Off

; When safe_mode is on, UID/GID checks are bypassed when
; including files from this directory and its subdirectories.
; (directory must also be in include_path or full path must
; be used when including)
; http://php.net/safe-mode-include-dir
safe_mode_include_dir =

; When safe_mode is on, only executables located in the safe_mode_exec_dir
; will be allowed to be executed via the exec family of functions.
; http://php.net/safe-mode-exec-dir
safe_mode_exec_dir = "/usr/share/sams/bin"

; Setting certain environment variables may be a potential security breach.
; This directive contains a comma-delimited list of prefixes.  In Safe Mode,
; the user may only alter environment variables whose names begin with the
; prefixes supplied here.  By default, users will only be able to set
; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
; Note:  If this directive is empty, PHP will let the user modify ANY
;   environment variable!
; http://php.net/safe-mode-allowed-env-vars
safe_mode_allowed_env_vars = PHP_

; This directive contains a comma-delimited list of environment variables that
; the end user won't be able to change using putenv().  These variables will be
; protected even if safe_mode_allowed_env_vars is set to allow to change them.
; http://php.net/safe-mode-protected-env-vars
safe_mode_protected_env_vars = LD_LIBRARY_PATH

чего ему не хватает?

★★

Он тебе прямым текстом сообщает, что

safe_mode = on

стало ненужным в похапэ 5.3 и выше.

//К.О.

GotF ★★★★★
()
Ответ на: комментарий от GotF

тоесть мне его закоментить и всё будет ок ?

drac753 ★★
() автор топика
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.