Icinga / icinga-web

Icinga Web 1.x, the old new web interface (EOL 31.12.2018)
22 stars 11 forks source link

[dev.icinga.com #1819] Icinga Web 1.5.0 beta does not detect system timezone via PHP #462

Closed icinga-migration closed 13 years ago

icinga-migration commented 13 years ago

This issue has been migrated from Redmine: https://dev.icinga.com/issues/1819

Created by Anonymous on 2011-08-15 10:01:57 +00:00

Assignee: (none) Status: Resolved (closed on 2011-09-09 14:19:10 +00:00) Target Version: 1.6 Last Update: 2011-12-03 11:30:13 +00:00 (in Redmine)


In Icinga Web 1.5.0 Beta1, Icinga Web does not properly detect the system timezone set in php.ini.

The error message is telling the end user to fix just that setting in php.ini(date.timezone):

-> 500 internal server error!

=== Error ===
Uncaught exception AgaviException thrown!

=== Message ===
Your default timezone is 'System/Localtime', which likely means that you're running Debian, Ubuntu or some other Linux distribution that chose to include a useless and broken patch for system timezone database lookups into their PHP package, despite this very change being declined by the PHP development team for inclusion into PHP itself.
This pseudo-timezone, which is not defined in the standard 'tz' database used across many operating systems and applications, works for internal PHP classes and functions because the 'real' system timezone is resolved instead, but there is no way for an application to obtain the actual timezone name that 'System/Localtime' resolves to internally - information Agavi needs to perform accurate calculations and operations on dates and times.

Please set a correct timezone name (e.g. Europe/London) via 'date.timezone' in php.ini, use date_default_timezone_set() to set it in your code, or define a default timezone for Agavi to use in translation.xml. If you have some minutes to spare, file a bug report with your operating system vendor about this problem.

If you'd like to learn more about this issue, please refer to http://trac.agavi.org/ticket/1008

=== Stacktrace ===

#0 /opt/icinga-web/app/cache/config/factories.xml_development_web_5cb123256da9467e50d1853cfb4cb8497199d5d0.php(61): AgaviTranslationManager->initialize(Object(AppKitAgaviContext), Array)
#1 /opt/icinga-web/app/cache/config/compile.xml_development__d01d07df3dd96d103c849ed8869c3ddddc16d574.php(384): include('/opt/icinga-web...')
#2 /opt/icinga-web/app/cache/config/compile.xml_development__d01d07df3dd96d103c849ed8869c3ddddc16d574.php(3543): AgaviContext->initialize()
#3 /opt/icinga-web/app/cache/config/compile.xml_development__d01d07df3dd96d103c849ed8869c3ddddc16d574.php(370): AppKitAgaviContext->initialize()
#4 /opt/icinga-web/pub/index.php(44): AgaviContext::getInstance('web')
#5 {main}

The timezone IS set in all the 3 php.ini's available on SLES 11 SP1 under /etc/php, apache2, cli, conf.d

The problem is only resolved if one sets the timezone in the translation.xml, which I believe is unacceptable for multi-timezone setups being forced to use one system timezone rather than inheriting through the users configuration.

PHP version:

PHP 5.2.14 with Suhosin-Patch 0.9.7 (cli) (built: Jun  1 2011 13:34:29)
Copyright (c) 1997-2009 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
icinga-migration commented 13 years ago

Updated by jmosshammer on 2011-08-15 12:24:20 +00:00

what does phpinfo() return?

icinga-migration commented 13 years ago

Updated by tgelf on 2011-08-15 12:58:11 +00:00

That's a tricky one :p Seems that SLES11 introduced the same patch you can find on Debian systems:

http://download.opensuse.org/distribution/11.1/repo/oss/ChangeLog

** php5:

I really dislike the way Agavi people are "handling" this issue (http://trac.agavi.org/ticket/1008), that's riduculous. However, I can also understand that they are pissed ;)

Nonetheless, you shouldn't see this error with a correct php.ini on your SLES system. Are you sure that your date.timezone line is not commented out (prefixed with a semicolon) in your php.ini? Your phpinfo() output would definitively help to bring some light on this issue!

Cheers, Thomas

icinga-migration commented 13 years ago

Updated by Anonymous on 2011-08-15 13:16:23 +00:00

server:/ # cat /etc/php5/apache2/php.ini | grep date.timezone
date.timezone = 'Europe/Berlin'
server:/ # cat /etc/php5/cli/php.ini | grep date.timezone
date.timezone = 'Europe/Berlin'

I hope this is not cleaned too hard OR soft of references to server+ip's ;) (Yes I can see date.timezone still being System, GRRRRRRRRR!)

PHP Logo
PHP Version 5.2.14

System  Linux server 2.6.32.36-0.5-default #1 SMP 2011-04-14 10:12:31 +0200 x86_64
Build Date  Jun 1 2011 13:22:32
Configure Command   '../configure' '--prefix=/usr' '--datadir=/usr/share/php5' '--mandir=/usr/share/man' '--bindir=/usr/bin' '--with-libdir=lib64' '--includedir=/usr/include' '--sysconfdir=/etc/php5/apache2' '--with-config-file-path=/etc/php5/apache2' '--with-config-file-scan-dir=/etc/php5/conf.d' '--enable-libxml' '--enable-session' '--with-mm' '--with-pcre-regex=/usr' '--enable-xml' '--enable-simplexml' '--enable-spl' '--enable-filter' '--disable-debug' '--enable-inline-optimization' '--disable-rpath' '--disable-static' '--enable-shared' '--program-suffix=5' '--with-pic' '--with-gnu-ld' '--with-system-tzdata=/usr/share/zoneinfo' '--with-apxs2=/usr/sbin/apxs2' '--disable-all' '--disable-cli'
Server API  Apache 2.0 Handler
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /etc/php5/apache2
Loaded Configuration File   /etc/php5/apache2/php.ini
Scan this dir for additional .ini files     /etc/php5/conf.d
additional .ini files parsed    /etc/php5/conf.d/bz2.ini, /etc/php5/conf.d/ctype.ini, /etc/php5/conf.d/curl.ini, /etc/php5/conf.d/dom.ini, /etc/php5/conf.d/gd.ini, /etc/php5/conf.d/gettext.ini, /etc/php5/conf.d/hash.ini, /etc/php5/conf.d/iconv.ini, /etc/php5/conf.d/json.ini, /etc/php5/conf.d/ldap.ini, /etc/php5/conf.d/mbstring.ini, /etc/php5/conf.d/mcrypt.ini, /etc/php5/conf.d/mysql.ini, /etc/php5/conf.d/mysqli.ini, /etc/php5/conf.d/openssl.ini, /etc/php5/conf.d/pdo.ini, /etc/php5/conf.d/pdo_mysql.ini, /etc/php5/conf.d/pdo_sqlite.ini, /etc/php5/conf.d/snmp.ini, /etc/php5/conf.d/soap.ini, /etc/php5/conf.d/sockets.ini, /etc/php5/conf.d/sqlite.ini, /etc/php5/conf.d/tokenizer.ini, /etc/php5/conf.d/xmlreader.ini, /etc/php5/conf.d/xmlrpc.ini, /etc/php5/conf.d/xmlwriter.ini, /etc/php5/conf.d/xsl.ini, /etc/php5/conf.d/zip.ini, /etc/php5/conf.d/zlib.ini
PHP API     20041225
PHP Extension   20060613
Zend Extension  220060519
Debug Build     no
Thread Safety   disabled
Zend Memory Manager     enabled
IPv6 Support    enabled
Registered PHP Streams  compress.bzip2, php, file, data, http, ftp, https, ftps, zip, compress.zlib
Registered Stream Socket Transports     tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters   bzip2.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, zlib.*

Suhosin logo This server is protected with the Suhosin Patch 0.9.7
Copyright (c) 2006 Hardened-PHP Project

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive   Local Value Master Value
allow_call_time_pass_reference  Off Off
allow_url_fopen On  On
allow_url_include   Off Off
always_populate_raw_post_data   Off Off
arg_separator.input &   &
arg_separator.output    &   &
asp_tags    Off Off
auto_append_file    no value    no value
auto_globals_jit    On  On
auto_prepend_file   no value    no value
browscap    no value    no value
default_charset no value    no value
default_mimetype    text/html   text/html
define_syslog_variables Off Off
disable_classes no value    no value
disable_functions   no value    no value
display_errors  Off Off
display_startup_errors  Off Off
doc_root    no value    no value
docref_ext  no value    no value
docref_root no value    no value
enable_dl   Off Off
error_append_string no value    no value
error_log   no value    no value
error_prepend_string    no value    no value
error_reporting 6143    6143
expose_php  On  On
extension_dir   /usr/lib64/php5/extensions  /usr/lib64/php5/extensions
file_uploads    On  On
highlight.bg    #FFFFFF #FFFFFF
highlight.comment   #FF8000 #FF8000
highlight.default   #0000BB #0000BB
highlight.html  #000000 #000000
highlight.keyword   #007700 #007700
highlight.string    #DD0000 #DD0000
html_errors Off Off
ignore_repeated_errors  Off Off
ignore_repeated_source  Off Off
ignore_user_abort   Off Off
implicit_flush  Off Off
include_path    .:/usr/share/php5:/usr/share/php5/PEAR  .:/usr/share/php5:/usr/share/php5/PEAR
log_errors  On  On
log_errors_max_len  1024    1024
magic_quotes_gpc    Off Off
magic_quotes_runtime    Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value    no value
max_execution_time  30  30
max_file_uploads    20  20
max_input_nesting_level 64  64
max_input_time  60  60
memory_limit    128M    128M
open_basedir    no value    no value
output_buffering    4096    4096
output_handler  no value    no value
post_max_size   8M  8M
precision   14  14
realpath_cache_size 16K 16K
realpath_cache_ttl  120 120
register_argc_argv  Off Off
register_globals    Off Off
register_long_arrays    Off Off
report_memleaks On  On
report_zend_debug   On  On
safe_mode   Off Off
safe_mode_exec_dir  no value    no value
safe_mode_gid   Off Off
safe_mode_include_dir   no value    no value
sendmail_from   no value    no value
sendmail_path   /usr/sbin/sendmail -t -i    /usr/sbin/sendmail -t -i 
serialize_precision 100 100
short_open_tag  Off Off
SMTP    localhost   localhost
smtp_port   25  25
sql.safe_mode   Off Off
suhosin.log.phpscript   0   0
suhosin.log.phpscript.is_safe   Off Off
suhosin.log.phpscript.name  no value    no value
suhosin.log.sapi    no value    no value
suhosin.log.script  no value    no value
suhosin.log.script.name no value    no value
suhosin.log.syslog  no value    no value
suhosin.log.syslog.facility no value    no value
suhosin.log.syslog.priority no value    no value
suhosin.log.use-x-forwarded-for Off Off
track_errors    Off Off
unserialize_callback_func   no value    no value
upload_max_filesize 8M  8M
upload_tmp_dir  /tmp    /tmp
user_dir    no value    no value
variables_order GPCS    GPCS
xmlrpc_error_number 0   0
xmlrpc_errors   Off Off
y2k_compliance  On  On
zend.ze1_compatibility_mode Off Off

apache2handler
Apache Version  Apache/2.2.10 (Linux/SUSE)
Apache API Version  20051115
Server Administrator    root@server
Hostname:Port   server..domain.STH:0
User/Group  wwwrun(30)/8
Max Requests    Per Child: 10000 - Keep Alive: on - Max Per Connection: 100
Timeouts    Connection: 300 - Keep-Alive: 15
Virtual Server  Yes
Server Root     /srv/www
Loaded Modules  core prefork http_core mod_so mod_authz_host mod_actions mod_alias mod_auth_basic mod_authz_groupfile mod_authn_file mod_authz_user mod_autoindex mod_cgi mod_dir mod_include mod_log_config mod_mime mod_negotiation mod_setenvif mod_status mod_userdir mod_asis mod_imagemap util_ldap mod_authnz_ldap mod_rewrite mod_ssl mod_php5 mod_authz_default

Directive   Local Value Master Value
engine  1   1
last_modified   0   0
xbithack    0   0

Apache Environment
Variable    Value
HTTP_HOST   server..domain.STH
HTTP_USER_AGENT     Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
HTTP_ACCEPT     text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
HTTP_ACCEPT_LANGUAGE    nb-no,nb;q=0.9,no-no;q=0.8,no;q=0.6,nn-no;q=0.5,nn;q=0.4,en-us;q=0.3,en;q=0.1
HTTP_ACCEPT_ENCODING    gzip, deflate
HTTP_ACCEPT_CHARSET     ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_CONNECTION     keep-alive
HTTP_COOKIE     __utma=172338864.1561482922.1310995104.1310995104.1310995104.1; __utmz=172338864.1310995104.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
PATH    /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
SERVER_SIGNATURE    Apache/2.2.10 (Linux/SUSE) Server at server..domain.STH Port 80
SERVER_SOFTWARE     Apache/2.2.10 (Linux/SUSE)
SERVER_NAME     server..domain.STH
SERVER_ADDR     10.0.0.2
SERVER_PORT     80
REMOTE_ADDR     10.0.1.2
DOCUMENT_ROOT   /srv/www/htdocs
SERVER_ADMIN    root@server
SCRIPT_FILENAME     /srv/www/htdocs/uhoh.php
REMOTE_PORT     62446
GATEWAY_INTERFACE   CGI/1.1
SERVER_PROTOCOL     HTTP/1.1
REQUEST_METHOD  GET
QUERY_STRING    no value
REQUEST_URI     /uhoh.php
SCRIPT_NAME     /uhoh.php

HTTP Headers Information
HTTP Request Headers
HTTP Request    GET /uhoh.php HTTP/1.1
Host    server..domain.STH
User-Agent  Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language     nb-no,nb;q=0.9,no-no;q=0.8,no;q=0.6,nn-no;q=0.5,nn;q=0.4,en-us;q=0.3,en;q=0.1
Accept-Encoding     gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Cookie  __utma=172338864.1561482922.1310995104.1310995104.1310995104.1; __utmz=172338864.1310995104.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
HTTP Response Headers
X-Powered-By    PHP/5.2.14
Keep-Alive  timeout=15, max=99
Connection  Keep-Alive
Transfer-Encoding   chunked
Content-Type    text/html

bz2
BZip2 Support   Enabled
Stream Wrapper support  compress.bz2://
Stream Filter support   bzip2.decompress, bzip2.compress
BZip2 Version   1.0.5, 10-Dec-2007

ctype
ctype functions     enabled

curl
cURL support    enabled
cURL Information    libcurl/7.19.0 OpenSSL/0.9.8h zlib/1.2.3 libidn/1.10

date
date/time support   enabled
"Olson" Timezone Database Version   0.system
Timezone Database   internal
Default timezone    System/Localtime

Directive   Local Value Master Value
date.default_latitude   31.7667 31.7667
date.default_longitude  35.2333 35.2333
date.sunrise_zenith 90.583333   90.583333
date.sunset_zenith  90.583333   90.583333
date.timezone   'Europe/Berlin' 'Europe/Berlin'

dom
DOM/XML     enabled
DOM/XML API Version     20031129
libxml Version  2.7.1
HTML Support    enabled
XPath Support   enabled
XPointer Support    enabled
Schema Support  enabled
RelaxNG Support     enabled

filter
Input Validation and Filtering  enabled
Revision    $Revision: 298196 $

Directive   Local Value Master Value
filter.default  unsafe_raw  unsafe_raw
filter.default_flags    no value    no value

gd
GD Support  enabled
GD Version  bundled (2.0.34 compatible)
FreeType Support    enabled
FreeType Linkage    with freetype
FreeType Version    2.3.7
T1Lib Support   enabled
GIF Read Support    enabled
GIF Create Support  enabled
JPG Support     enabled
PNG Support     enabled
WBMP Support    enabled
XPM Support     enabled
XBM Support     enabled

gettext
GetText Support     enabled

hash
hash support    enabled
Hashing Engines     md2 md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 ripemd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv
iconv support   enabled
iconv implementation    glibc
iconv library version   2.11.1

Directive   Local Value Master Value
iconv.input_encoding    ISO-8859-1  ISO-8859-1
iconv.internal_encoding ISO-8859-1  ISO-8859-1
iconv.output_encoding   ISO-8859-1  ISO-8859-1

json
json support    enabled
json version    1.2.1

ldap
LDAP Support    enabled
RCS Version     $Id: ldap.c 293036 2010-01-03 09:23:27Z sebastian $
Total Links     0/unlimited
API Version     3001
Vendor Name     OpenLDAP
Vendor Version  20412
SASL Support    Enabled

libxml
libXML support  active
libXML Version  2.7.1
libXML streams  enabled

mbstring
Multibyte Support   enabled
Multibyte string engine     libmbfl
Multibyte (japanese) regex support  enabled
Multibyte regex (oniguruma) version     4.4.4
Multibyte regex (oniguruma) backtrack check     On

mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.

Directive   Local Value Master Value
mbstring.detect_order   no value    no value
mbstring.encoding_translation   Off Off
mbstring.func_overload  0   0
mbstring.http_input pass    pass
mbstring.http_output    pass    pass
mbstring.internal_encoding  no value    no value
mbstring.language   neutral neutral
mbstring.strict_detection   Off Off
mbstring.substitute_character   no value    no value

mcrypt
mcrypt support  enabled
Version     2.5.8
Api No  20021217
Supported ciphers   idea mars rc6 skipjack cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes     cbc cfb ctr ecb ncfb nofb ofb stream

Directive   Local Value Master Value
mcrypt.algorithms_dir   no value    no value
mcrypt.modes_dir    no value    no value

mysql
MySQL Support   enabled
Active Persistent Links     0
Active Links    0
Client API version  5.0.67
MYSQL_MODULE_TYPE   external
MYSQL_SOCKET    /var/lib/mysql/mysql.sock
MYSQL_INCLUDE   -I/usr/include/mysql
MYSQL_LIBS  -L/usr/lib64 -lmysqlclient

Directive   Local Value Master Value
mysql.allow_persistent  Off Off
mysql.connect_timeout   60  60
mysql.default_host  no value    no value
mysql.default_password  no value    no value
mysql.default_port  no value    no value
mysql.default_socket    no value    no value
mysql.default_user  no value    no value
mysql.max_links Unlimited   Unlimited
mysql.max_persistent    Unlimited   Unlimited
mysql.trace_mode    Off Off

mysqli
MysqlI Support  enabled
Client API library version  5.0.67
Client API header version   5.0.67
MYSQLI_SOCKET   /var/lib/mysql/mysql.sock

Directive   Local Value Master Value
mysqli.default_host no value    no value
mysqli.default_port 3306    3306
mysqli.default_pw   no value    no value
mysqli.default_socket   no value    no value
mysqli.default_user no value    no value
mysqli.max_links    Unlimited   Unlimited
mysqli.reconnect    Off Off

openssl
OpenSSL support     enabled
OpenSSL Version     OpenSSL 0.9.8h 28 May 2008

pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled
PCRE Library Version    8.12 2011-01-15

Directive   Local Value Master Value
pcre.backtrack_limit    100000  100000
pcre.recursion_limit    100000  100000

PDO
PDO support enabled
PDO drivers     mysql, sqlite, sqlite2

pdo_mysql
PDO Driver for MySQL, client library version    5.0.67

pdo_sqlite
PDO Driver for SQLite 3.x   enabled
PECL Module version     1.0.1 $Id: pdo_sqlite.c 293036 2010-01-03 09:23:27Z sebastian $
SQLite Library  3.6.4

Reflection
Reflection  enabled
Version     $Id: php_reflection.c 300129 2010-06-03 00:43:37Z felipe $

session
Session Support     enabled
Registered save handlers    files user mm sqlite
Registered serializer handlers  php php_binary

Directive   Local Value Master Value
session.auto_start  Off Off
session.bug_compat_42   Off Off
session.bug_compat_warn On  On
session.cache_expire    180 180
session.cache_limiter   nocache nocache
session.cookie_domain   no value    no value
session.cookie_httponly On  On
session.cookie_lifetime 0   0
session.cookie_path /   /
session.cookie_secure   Off Off
session.entropy_file    /dev/urandom    /dev/urandom
session.entropy_length  16  16
session.gc_divisor  1000    1000
session.gc_maxlifetime  1440    1440
session.gc_probability  1   1
session.hash_bits_per_character 5   5
session.hash_function   1   1
session.name    PHPSESSID   PHPSESSID
session.referer_check   no value    no value
session.save_handler    files   files
session.save_path   /var/lib/php5   /var/lib/php5
session.serialize_handler   php php
session.use_cookies On  On
session.use_only_cookies    On  On
session.use_trans_sid   0   0

SimpleXML
Simplexml support   enabled
Revision    $Revision: 299016 $
Schema support  enabled

snmp
NET-SNMP Support    enabled
NET-SNMP Version    5.4.2.1

soap
Soap Client     enabled
Soap Server     enabled

Directive   Local Value Master Value
soap.wsdl_cache 1   1
soap.wsdl_cache_dir /tmp    /tmp
soap.wsdl_cache_enabled 1   1
soap.wsdl_cache_limit   5   5
soap.wsdl_cache_ttl 86400   86400

sockets
Sockets Support     enabled

SPL
SPL support enabled
Interfaces  Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes     AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RecursiveRegexIterator, RegexIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

SQLite
SQLite support  enabled
PECL Module version     2.0-dev $Id: sqlite.c 298697 2010-04-28 12:10:10Z iliaa $
SQLite Library  2.8.17
SQLite Encoding     UTF-8

Directive   Local Value Master Value
sqlite.assoc_case   0   0

standard
Regex Library   Bundled library enabled
Dynamic Library Support     enabled
Path to sendmail    /usr/sbin/sendmail -t -i

Directive   Local Value Master Value
assert.active   1   1
assert.bail 0   0
assert.callback no value    no value
assert.quiet_eval   0   0
assert.warning  1   1
auto_detect_line_endings    0   0
default_socket_timeout  60  60
safe_mode_allowed_env_vars  PHP_    PHP_
safe_mode_protected_env_vars    GCONV_PATH,GETCONF_DIR,HOSTALIASES,LD_AUDIT,LD_DEBUG,LD_DEBUG_OUTPUT,LD_DYNAMIC_WEAK,LD_LIBRARY_PATH,LD_ORIGIN_PATH,LD_PRELOAD,LD_PROFILE,LD_SHOW_AUXV,LD_USE_LOAD_BIAS,LOCALDOMAIN,LOCPATH,MALLOC_TRACE,NLSPATH,RESOLV_HOST_CONF,RES_OPTIONS,TMPDIR,TZDIR  GCONV_PATH,GETCONF_DIR,HOSTALIASES,LD_AUDIT,LD_DEBUG,LD_DEBUG_OUTPUT,LD_DYNAMIC_WEAK,LD_LIBRARY_PATH,LD_ORIGIN_PATH,LD_PRELOAD,LD_PROFILE,LD_SHOW_AUXV,LD_USE_LOAD_BIAS,LOCALDOMAIN,LOCPATH,MALLOC_TRACE,NLSPATH,RESOLV_HOST_CONF,RES_OPTIONS,TMPDIR,TZDIR
url_rewriter.tags   a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent  no value    no value

tokenizer
Tokenizer Support   enabled

xml
XML Support     active
XML Namespace Support   active
libxml2 Version     2.7.1

xmlreader
XMLReader   enabled

xmlrpc
core library version    xmlrpc-epi v. 0.51
php extension version   0.51
author  Dan Libby
homepage    http://xmlrpc-epi.sourceforge.net
open sourced by     Epinions.com

xmlwriter
XMLWriter   enabled

xsl
XSL     enabled
libxslt Version     1.1.24
libxslt compiled against libxml Version     2.7.1
EXSLT   enabled
libexslt Version    1.1.24

zip
Zip     enabled
Extension Version   $Id: php_zip.c 293036 2010-01-03 09:23:27Z sebastian $
Zip version     1.8.11
Libzip version  0.9.0

zlib
ZLib Support    enabled
Stream Wrapper support  compress.zlib://
Stream Filter support   zlib.inflate, zlib.deflate
Compiled Version    1.2.3
Linked Version  1.2.3

Directive   Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level   -1  -1
zlib.output_handler no value    no value

Additional Modules
Module Name

Environment
Variable    Value
LESSKEY     /etc/lesskey.bin
NNTPSERVER  news
INFODIR     /usr/local/info:/usr/share/info:/usr/info
MANPATH     /usr/share/man:/usr/local/man
HOSTNAME    server
XKEYSYMDB   /usr/share/X11/XKeysymDB
HOST    server
TERM    xterm
SHELL   /bin/bash
PROFILEREAD     true
HISTSIZE    1000
SSH_CLIENT  10.0.1.2 50033 22
MORE    -sl
get_module_list_done    true
SSH_TTY     /dev/pts/1
LC_ALL  POSIX
http_proxy  http://proxy:8080
USER    root
LS_COLORS   no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:
XNLSPATH    /usr/X11R6/lib/X11/nls
ENV     /etc/bash.bashrc
HOSTTYPE    x86_64
ftp_proxy   http://proxy:8080
FROM_HEADER     no value
PAGER   less
COLUMNS     202
CSHEDIT     emacs
XDG_CONFIG_DIRS     /etc/xdg
get_includes_done   true
MINICOM     -c on
MAIL    /var/mail/root
PATH    /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
CPU     x86_64
INPUTRC     /etc/inputrc
PWD     /home/admrdar/git/icinga-web
LANG    POSIX
PYTHONSTARTUP   /etc/pythonstart
LINES   64
https_proxy     http://proxy:8080
QT_SYSTEM_DIR   /usr/share/desktop-data
SHLVL   3
HOME    /var/lib/apache2
LESS_ADVANCED_PREPROCESSOR  no
OSTYPE  linux
LS_OPTIONS  -A -N --color=tty -T 0
no_proxy    localhost, 127.0.0.1, .domain.STH
XCURSOR_THEME   no value
LESS    -M -I
MACHTYPE    x86_64-suse-linux
LOGNAME     root
CVS_RSH     ssh
XDG_DATA_DIRS   /usr/share:/etc/opt/kde3/share:/opt/kde3/share
LC_CTYPE    en_US.UTF-8
SSH_CONNECTION  10.0.1.2 50033 10.0.0.2 22
LESSOPEN    lessopen.sh %s
INFOPATH    /usr/local/info:/usr/share/info:/usr/info
LESSCLOSE   lessclose.sh %s %s
G_BROKEN_FILENAMES  1
COLORTERM   1
_   /sbin/startproc
PREVLEVEL   N
RUNLEVEL    3
DAEMON  /usr/sbin/httpd2-prefork

PHP Variables
Variable    Value
_REQUEST["__utma"]  172338864.1561482922.1310995104.1310995104.1310995104.1
_REQUEST["__utmz"]  172338864.1310995104.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
_COOKIE["__utma"]   172338864.1561482922.1310995104.1310995104.1310995104.1
_COOKIE["__utmz"]   172338864.1310995104.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
_SERVER["HTTP_HOST"]    server..domain.STH
_SERVER["HTTP_USER_AGENT"]  Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20100101 Firefox/5.0
_SERVER["HTTP_ACCEPT"]  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
_SERVER["HTTP_ACCEPT_LANGUAGE"] nb-no,nb;q=0.9,no-no;q=0.8,no;q=0.6,nn-no;q=0.5,nn;q=0.4,en-us;q=0.3,en;q=0.1
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["HTTP_ACCEPT_CHARSET"]  ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_CONNECTION"]  keep-alive
_SERVER["HTTP_COOKIE"]  __utma=172338864.1561482922.1310995104.1310995104.1310995104.1; __utmz=172338864.1310995104.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)
_SERVER["PATH"] /sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
_SERVER["SERVER_SIGNATURE"] Apache/2.2.10 (Linux/SUSE) Server at server..domain.STH Port 80
_SERVER["SERVER_SOFTWARE"]  Apache/2.2.10 (Linux/SUSE)
_SERVER["SERVER_NAME"]  server..domain.STH
_SERVER["SERVER_ADDR"]  10.0.0.2
_SERVER["SERVER_PORT"]  80
_SERVER["REMOTE_ADDR"]  10.0.1.2
_SERVER["DOCUMENT_ROOT"]    /srv/www/htdocs
_SERVER["SERVER_ADMIN"] root@server
_SERVER["SCRIPT_FILENAME"]  /srv/www/htdocs/uhoh.php
_SERVER["REMOTE_PORT"]  62446
_SERVER["GATEWAY_INTERFACE"]    CGI/1.1
_SERVER["SERVER_PROTOCOL"]  HTTP/1.1
_SERVER["REQUEST_METHOD"]   GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"]  /uhoh.php
_SERVER["SCRIPT_NAME"]  /uhoh.php
_SERVER["PHP_SELF"] /uhoh.php
_SERVER["REQUEST_TIME"] 1313413896

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
icinga-migration commented 13 years ago

Updated by jmosshammer on 2011-08-17 07:16:33 +00:00

Looks more like a php issue. What happens if you add

date_default_timezone_set('Europe/Berlin');

at the top of pub/index.php

icinga-migration commented 13 years ago

Updated by mhein on 2011-08-23 09:44:20 +00:00

Hi.

You have to define your PHP environment. We can not guess which time zone is needed and PHP comes unconfigured.

Just define date.timezone in your php.ini and everything works.

icinga-migration commented 13 years ago

Updated by mhein on 2011-08-24 08:11:44 +00:00

icinga-migration commented 13 years ago

Updated by mfriedrich on 2011-08-24 08:40:30 +00:00

$ make db-initialize

[...]

[PHP Error] 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. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead [line 1548 of /home/xxx/icinga/icinga-web/lib/doctrine/lib/Doctrine/Record.php]

that should be mentioned somewhere in the upgrade docs.

icinga-migration commented 13 years ago

Updated by mfriedrich on 2011-08-24 08:41:15 +00:00

rhel 5.7 x64

$ php -v
PHP 5.3.3 (cli) (built: Jan 20 2011 06:13:52) 
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies
icinga-migration commented 13 years ago

Updated by mhein on 2011-09-09 14:19:10 +00:00

Hi.

Jannis has implemented a three way search for a valid tz. Think this is fixed now.

Kind regards, Marius.

icinga-migration commented 12 years ago

Updated by mfriedrich on 2011-12-03 11:30:13 +00:00