пятница, 7 января 2011 г.

FreeBSD: Sams на PHP 5.3?

Если вебморад SAMS ругается вот так в настрйоках пользователя:

Warning: strftime() [function.strftime]: 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/Moscow' for 'MSK/3.0/no DST' instead in /usr/local/share/sams/src/usertray.php on line 336

То надо в php.ini задать

date.timezone = Europe/Moscow

Если вебморда SAMS не пускат на страницу Администрирования SAMS то надо:

в файлах:
/usr/local/share/sams/src/configtray.php
/usr/local/share/sams/src/webconfigtray.php

заменить GetHostName на GetHostNameSams

Комментариев нет: