Skip to main content

Multiple PHP error_log files

Comments

4 comments

  • andrew.n
    I believe they are all goes to error_log but under their respective public_html folder. Did you set the same PHP version for all of them? If not make sure it is enabled and set in each PHP ini file.
    0
  • cPRex Jurassic Moderator
    @f1alan - on my personal system, by default I do get the error_log created in /home/username/public_html. I also confirmed that commenting out the line you mention in the global configuration stop the log from being written locally and the log entry only shows up in /etc/apache2/logs/error_log. In order to ensure you've commented out the correct global file, I'd recommend making that change from WHM >> MultiPHP INI Editor under the "Editor Mode" tab for the version you want to adjust. Can you try that and let me know the results?
    0
  • f1alan
    @f1alan - on my personal system, by default I do get the error_log created in /home/username/public_html. I also confirmed that commenting out the line you mention in the global configuration stop the log from being written locally and the log entry only shows up in /etc/apache2/logs/error_log. In order to ensure you've commented out the correct global file, I'd recommend making that change from WHM >> MultiPHP INI Editor under the "Editor Mode" tab for the version you want to adjust. Can you try that and let me know the results?

    Thanks for your response. I double checked the setting and it was indeed as I described above. However, it seems to be behaving as expected now. I think I must have confused some old log files yesterday (which I have now deleted). Sorry for the false alarm.
    0
  • cPRex Jurassic Moderator
    No worries at all - I'm glad things are working how you expect now!
    0

Please sign in to leave a comment.