|  
도움말

Linux 호스팅(cPanel) 도움말

Set up custom-defined PHP error logs in cPanel for my Linux Hosting

cPanel offers built-in error logging, but it doesn't catch errors generated from PHP or keep error logs for extended periods of time. To remedy this, you can have PHP store errors it encounters in a custom-defined error log file.

Required: To follow these steps you need your FTP username.
  1. Create a file called php_error.log, and move the file to your server with FTP or the cPanel File Manager.
  2. Create or edit a PHP initialization file containing the following line of code:
    error_log = /home/[your FTP username]/public_html/php_error.log

    Note: Make sure this file has the right name.

Now, PHP will pass any coding-related errors to the php_error.log file. This file can take a few hours before it starts receiving errors your website generates, and only displays content if your website does generate errors.

More info


이 글이 도움되었나요?
피드백을 보내주셔서 감사합니다. 고객 서비스 담당자에게 문의하시려면 지원 전화 번호 또는 위의 채팅 옵션을 이용하시기 바랍니다.
도와드릴 수 있어 기쁩니다! 더 도와 드릴 것이 있나요?
그것 유감스럽습니다. 혼동이 되었던 사항 또는 솔루션이 고객님의 문제를 해결하지 못했던 원인을 알려주세요.