How to find all Error log files in cPanel? Serverhosthub – The Hosting Platform Made For You – Go Online With Hosting serverhosthub | free hosting | Linux shared hosting | Hosting | Free domain | Life time Free ssl certificate | Chepest web hosting | Low price hosting | Domain Transfer

Today in this tutorial you will learn how to find all error log files in cPanel. All you have to do is create a test.php file in the public_html of your cPanel in which you have to place a small script like the one below:

<?php
$anything = shell_exec('find /home/username/public_html/ -name "error_log" -print');
echo "<pre>$anything</pre>";
?>
How to find all error log files in cPanel?
How to find all error log files in cPanel?

This above command will print all the error log files in your cPanel.

How to find all error log files in cPanel?
How to find all error log files in cPanel?

You can set the url https://yourdomain.com/test.php. You can test it by visiting

You can also watch this video on how to find all error log files in cPanel.

That’s all, we hope this tutorial helped you learn how to find all error log files in cPanel.