Why is the php_error.log file too large?

Source: Internet
Author: User
Why is the php_error.log file too large? What is the use of the php_error.log file? Can I delete this file if it is so large? stop apache and delete the file. after deletion, it should be re-created. after the establishment, you can see that the file size has increased. you can open it and see what the content is. what if php is executing the php_error.log file that is too large?
What is the use of the php_error.log file? Why is it so big? can I delete it?

------ Solution --------------------
Stop apache and delete the file. after deletion, it should be re-created. after the creation, you can see that the file size has increased. you can open it and see what the content is. if it is an error generated during php execution, find the appropriate place to modify the php code or disable the php error record.
Check the php. ini file and find log_errors = On and change it to Off to disable logging. you 'd better check the content and see what errors are there.
------ Solution --------------------
Record error information, which can be deleted, but will generate

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.