problem after switch to litespeed in directadmin

#1
hi
im install litespeed and build php
after switch from apache to litespeed my website this error
:
Warning: date() [function.date]: 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 'America/New_York' for 'EST/-5.0/no DST' instead in /home/mani/domains/manichat.ir/public_html/class/Index.class.php on line 64

how fix this problem?
 

NiteWave

Administrator
#2
have you built matching php ?

run
/usr/local/lsws/fcgi-bin/lsphp5 -i |grep "Loaded Configuration File",
check if no php.ini loaded.
 

webizen

Well-Known Member
#3
..
Warning: date() [function.date]: 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 'America/New_York' for 'EST/-5.0/no DST' instead in /home/mani/domains/manichat.ir/public_html/class/Index.class.php on line 64

how fix this problem?
the issue (warning) indicates that you do not have date.timezone defined in php.ini. to find out which php.ini is used, run the command as NiteWave suggested.
 

webizen

Well-Known Member
#5
your php.ini does not have date.timezone defined. That's the cause of the warning. To solve that:
1. find the php.ini in use by LSWS
use command suggested by NiteWave to locate the file
2. edit the php.ini found in 1
add line "date.timezone=America/New_York" and restart LSWS to pick it up.
 
Top