Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8699643
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:59:51+00:00 2026-06-13T01:59:51+00:00

Possible Duplicate: PHP Configuration: It is not safe to rely on the system’s timezone

  • 0

Possible Duplicate:
PHP Configuration: It is not safe to rely on the system’s timezone settings
Php errors: Warning: require() [function.require]: open_basedir restriction in effect

My first question here at stackoverflow (please be nice :P)

Why is my apache showing this error?

Severity: Warning

Message: strtotime() [function.strtotime]: 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/Berlin’ for ‘CEST/2.0/DST’ instead

Environment

I’m using MacOS Mountain Lion’s (10.8.2) Apache.

Things I’ve tried

  • I’ve tried to rename my /etc/php.ini.default to /etc/php.ini but when I do, php won’t compile anymore.

  • I’ve also tried to uncomment this line (in the php.ini):

    date.timezone = ‘Europe/Berlin’

But it doesn’t do anything. As soon as I restart apache the php stops working.

Any ideas?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:59:53+00:00Added an answer on June 13, 2026 at 1:59 am

    This is PHP message, not Apache. And it is because, as messages indicates, of misconfiguration of your PHP. Edit your correct php.ini file (usually, it ends in /etc/php5/<FLAVOUR>/php.init, where “FLAVOUR” can be apache2, cli or (most likely) cgi (or cgi-bin), for example /etc/php5/apache2/php.ini. Then uncomment date.timezone line and put your timezone, i.e.

    date.timezone = Europe/Berlin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: PHP function to strip tags, except a list of whitelisted tags and
Possible Duplicate: PHP: Require() and Class Hierarchies Is this bad practice? Is there any
Possible Duplicate: php mail() function on localhost I am using php mail(). I have
Possible Duplicate: PHP class instantiation. To use or not to use the parenthesis? Omission
Possible Duplicate: PHP get all arguments as array? Within a javascript function arguments always
Possible Duplicate: PHP code is not being executed (i can see it on source
Possible Duplicate: PHP SPL RecursiveDirectoryIterator RecursiveIteratorIterator retrieving the full tree I am not sure
Possible Duplicate: PHP Export Excel to specific Path? I'm not really familiar with PHP
Possible Duplicate: php warning mysql_fetch_assoc I have tried my code and it seems to
Possible Duplicate: php in background exec() function After a certain script runs on website

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.