Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the command to view the php error log under linux

2025-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces what is the command to view the php error log under linux, which has a certain reference value, and friends who need it can refer to it. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

How to view the location of the php error log under linux: you can check the location of the error log by executing the [echo'| php 2 > & 1 | grep-I error_log] command.

Check the error log storage address through php.ini

Echo''| php 2 > & 1 | grep-I error_log

Or output phpinfo () in a php file; view the location of the error log

View the location of the log

Vi / etc/php.ini

View the log:

Tail-f-50 / var/php_errors.log

In addition to normal error output, PHP allows custom messages to be sent to the system syslog.

Thank you for reading this article carefully. I hope the editor will share what the command to view the php error log under linux is helpful to everyone. At the same time, I also hope that you will support us, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report