Open PHP and Apache error hints

Source: Internet
Author: User
If you use PHP + Apache, the default setting, PHP coding error is not prompted, which is very inconvenient for development. You can use the following steps to turn on the error hint (Cetnos, for example):
1. Open the php.ini file.
This file is in:/etc/php.ini.
2. Search and modify the downstream

Display_errors = Off

Change the off value to on

3. Search downstream
error_reporting = E_all & ~e_deprecated & ~e_strict
Revision changed to
error_reporting = E_all | E_strict

4. Modify Apache's httpd.conf,

Files in/etc/httpd/conf/httpd.conf

Add the following two lines:
Php_flag display_errors on
Php_value error_reporting 2039
5. Restart Apache and it will be OK.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

The above describes the open PHP and Apache error hints, including the content, I hope the PHP tutorial interested in a friend helpful.

  • Related Article

    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.