简体   繁体   中英

Check php errors log in my EC2 Instance running Amazon Linux

Iv have been trying to find a way on how to find where my php errors log file is stored in. I am using an EC2 Instance, in Amazon AWS running Amazon Linux. Usually, when using MAMP, I get some PHP Warnings and Notices I can see in a php_log file.

I have been looking for the file, and still no luck finding it.

Do you know where I can find the error log (file)?

Thanks a lot!

Cheers.

It is in /var/log/httpd/error_log

To debug and see log changes you can do

tail -f /var/log/httpd/error_log

根据您使用的配置,错误将进入Web服务器错误日志文件,或者将存储在/var/log/php-fpm/5.6/ (假设您使用的是5.6)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM