LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   General (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=25)
-   -   problem after switch to litespeed in directadmin (http://www.litespeedtech.com/support/forum/showthread.php?t=6520)

TakCloud 01-02-2013 05:47 AM

problem after switch to litespeed in directadmin
 
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 01-02-2013 06:46 AM

have you built matching php ?

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

webizen 01-02-2013 01:00 PM

Quote:

Originally Posted by TakCloud (Post 42238)
..
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.

TakCloud 01-05-2013 10:58 PM

I do not understand what you mean
What should be done to resolve this problem?

webizen 01-08-2013 12:41 PM

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.


All times are GMT -7. The time now is 11:01 AM.