Tuesday, April 23, 2019

Solution To: PHP TimeZone Error


Error Message:
"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."
Solution:

1. Edit PHP ini file.
1.1. Find timezone entry  ie ;date.timezone
1.2. Uncomment the entry ie delete the symbol ";"
1.3. Add a time zone name ie date.timezone="Asia/Kuala_Lumpur"

Solution To: HTTP 500 - Internal Server Error


1. If the file .htaccess exists, remove or rename the file into something else and then put it back. See if the problem resolved.

2. Check Apache Error Logs to get some clues. It could be due to Apache Modules not being enabled. For example, check that Mod Rewrite and Mod Headers are enabled.

Labels