LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > problem after switch to litespeed in directadmin

Reply
 
Thread Tools Display Modes
  #1  
Old 01-02-2013, 05:47 AM
TakCloud TakCloud is offline
Member
 
Join Date: Jul 2012
Posts: 15
Default 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?
Reply With Quote
  #2  
Old 01-02-2013, 06:46 AM
NiteWave NiteWave is online now
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
have you built matching php ?

run
/usr/local/lsws/fcgi-bin/lsphp5 -i |grep "Loaded Configuration File",
check if no php.ini loaded.
Reply With Quote
  #3  
Old 01-02-2013, 01:00 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
Quote:
Originally Posted by TakCloud View Post
..
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.
Reply With Quote
  #4  
Old 01-05-2013, 10:58 PM
TakCloud TakCloud is offline
Member
 
Join Date: Jul 2012
Posts: 15
I do not understand what you mean
What should be done to resolve this problem?
Reply With Quote
  #5  
Old 01-08-2013, 12:41 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,339
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 08:48 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.