Visualizzazione post con etichetta warning. Mostra tutti i post
Visualizzazione post con etichetta warning. Mostra tutti i post

mercoledì 30 aprile 2014

Postfix: warning: hostname localhost does not resolve to address ::1: No address associated with hostname

Per eliminare il warning, nel file /etc/hosts sostituire la riga:
::1     localhost ip6-localhost ip6-loopback
con la riga:
::1     localhost6 ip6-localhost ip6-loopback

mercoledì 23 ottobre 2013

PHP Warning: strtotime(): It is not safe to rely on the system's timezone settings.


Questo errore nei log di Apache:
FastCGI: server "/var/www/clients/client3/web4/cgi-bin/php5-fcgi-*-80-example.com" stderr: PHP message: PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier.
e' caratteristico di PHP 5.3 (pare sia sparito con la release 5.4).
Per risolverlo bisogna aggiungere al php.ini la riga:
date.timezone = "Europe/Rome"
personalizzando se occorre la timezone tra doppi apici

giovedì 3 febbraio 2011

PHP: disabilitare (temporaneamente) i warning generati da uno script

Ci sono due possibilita:

  1. Inserire la riga seguente nel file di configurazione php.ini:
    display_errors = 0
  2. Inserire a inizio script la clausola:
    ini_set( "display_errors", 0);

lunedì 18 maggio 2009

rkhunter: Warning: The file '/usr/sbin/unhide' exists on the system, but it is not present in the rkhunter.dat file.

Se nella mail di report del comando rkhunter ricevete qualcosa del genere:
Warning: The file '/usr/sbin/unhide' exists on the system, but it is not present in the rkhunter.dat file.
Warning: The file '/usr/sbin/unhide-linux26' exists on the system, but it is not present in the rkhunter.dat file.

Per aggiornare il file rkhunter.dat, dopo aver controllato la natura e l'eventuale pericolosita' dei file segnalati, lanciare il seguente comando:
rkhunter --propupd

domenica 30 novembre 2008

rkhunter: PHP Warning: Function registration failed - duplicate name - pg_update in Unknown on line 0


Puo' capitare, lanciando rkhunter, di ricevere warning da PHP come il seguente:
PHP Warning: Function registration failed - duplicate
name - pg_update in Unknown on line 0.

Molto probabilmente avete aggiornato/compilato la versione Apache del PHP ma non quella CLI (ovvero la versione per console).
Su un sistema ubuntu/debian potrebbe bastare il seguente comando:
sudo apt-get install php5-cli


martedì 22 aprile 2008

syslog: perl: warning: Setting locale failed.


Diversi log riportavano questa segnalazione:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:

LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").



In effetti solo il locale it_IT.UTF-8 era installato sulla macchina.

Soluzione:

apt-get install locales (pacchetto comunque gia' installato)
dpkg-reconfigure locales (scegliendo it_IT.UTF-8, en_GB.UTF-8 e nessun locale di default)