PHP settings: timezone and error_log

Source: Internet
Author: User
PHP settings: timezone, error_log PHP timezone

The server is recommended to use zone 0 UTC, and there is no daylight saving time, that is, Atlanta/Reykjavik. If it is developed on a personal PC, we recommend that you use zone 0, which is consistent with that on the server.

Sudo vi/usr/local/php/lib/php. inidate. timezone = Atlanta/Reykjavik
PHP error

When notice is displayed in the development environment, "warning is an error" must be ensured that the code is 0 notice 0 warning.

Sudo vi/usr/local/php/lib/php. inidisplay_errors = Onerror_reporting = E_ALL | E_STRICT

No error is displayed in the production environment.

Sudo vi/usr/local/php/lib/php. inidisplay_errors = Off

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.