Nicola Urbinati

Well-Known Member
Feb 1, 2017
76
11
8
Italy
cPanel Access Level
Root Administrator
Hi,

I'm experiencing an Error 500 on my Joomla site (only by the frontend, the backend is working flawlessly).
I do not find any errors anywhere I can get to:
/home/user/logs (defaut for Easyapache right?)
/public_html/logs (Joomla's own logs)
cPanel/Errors.

All other sites are working fine (both Joomla, Worpress, even a Dolibarr one)

Is there any other place I can find logs?
Anyone has any clue on this?

Thanks.
 

Nicola Urbinati

Well-Known Member
Feb 1, 2017
76
11
8
Italy
cPanel Access Level
Root Administrator
Well, it was apparently somethig about security, as it's working again now, without my intervention...
Can some of cPanel/WHM security engines throw that behaviour on a site? Where can I look for the right incident?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
k, found it: it was a low PHP memory_limit
Having no tip from the logs caused me an headache
Hello @Nicola Urbinati,

I'm glad to see you were able to determine the cause of the issue. Generally, PHP errors are logged to the error_log file located in the document root of the domain name that was accessed when the error was generated. Do you see an error_log file in the document root of the affected website? If not, can you verify which PHP handler is assigned to the domain?

Thank you.
 

Nicola Urbinati

Well-Known Member
Feb 1, 2017
76
11
8
Italy
cPanel Access Level
Root Administrator
The handler should be suPHP (7.2) with FPM (as noted in MultiPHP Manager, even if my other sources like the system information page in joomla say: Server API FPM/FastCGI, I think from phpinfo).

In the directory root I have the logs directory, and in the file for that domain (domain_com.php.error.log) there was no hint at the incident, as I noted before.
Nor I saw any line about it in the Errors page in cPanel.

Thank you, I'm eager to help investigating if you need it.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Hello @Nicola Urbinati,

With PHP-FPM, the individual error log for PHP scripts is located in the following location:

/home/username/logs/domain_com.php.error.log

Are you sure that no entries exist at all in this log file at the times when the memory limit was reached?

Thank you.
 

Nicola Urbinati

Well-Known Member
Feb 1, 2017
76
11
8
Italy
cPanel Access Level
Root Administrator
That's exactly where I searched for hints, and found nothing.
Might be Joomla thew the error before PHP could do it, but even Joomla logs were without lines about the incident.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Hello @Nicola Urbinati,

We're happy to take a closer look at your server to see why the PHP errors are not logged. You can open a support ticket and post the ticket number here.

Thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Hello,

To update, it looks like the global PHP-FPM error log for PHP version 7.2 was helpful for troubleshooting the specific error message:

/opt/cpanel/ea-php72/root/usr/var/log/php-fpm/error.log

Thank you.