firemagician

Member
Dec 31, 2014
10
0
1
cPanel Access Level
Website Owner
Hi,

My - Removed - is having a frequent 500 Internal Server Error

When I browse the site, occasionally, I will be redirected to a 500 page error but refreshing it will load it normally.
I want to get rid of it.
I've already tried a few troubleshooting but still no luck:
- replaced .htaccess
- deactivate all plugins

I've read something about flushing cache but can't quite comprehend to what it does and how to do it.

I'm really new to web developing and this seems to be the only problem I'm having for now and I'm stuck here.

Any help would be appreciated. THanks!
 
Last edited by a moderator:

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hello,

When Apache serves a ISE 500 (Internal Server Error 500), it will usually output to the logs in /usr/local/apache/logs/error_log about why it served a 500 page. The next time you see these errors, check that log. It should provide you a place to start.
 

firemagician

Member
Dec 31, 2014
10
0
1
cPanel Access Level
Website Owner
Hi, Jacob thanks for the response

I'm using cPanel (ofcourse) and I checked the error log but there's nothing in it.

Simply blank. And I don't know where I can find the "/usr/local/apache/logs/error_log"
Can please elaborate?
Thanks
 
Feb 18, 2015
6
0
1
cPanel Access Level
Root Administrator
Hello,

Yes, you suppose to tail the apache logs at the moment when you are facing such issues, you can do that easily with the help of below steps :

1. Login into the shell prompt of your hosting server

2. Do fire the command as below tail -f /usr/local/apache/logs/error_log | grep domainname (domain name suppose to be replaced with the exact domain name)

This will give you the exact cause...if permission and .htaccess is correct then it must be due to cloudlinux or due to resources given for the user, so kindly tail the logs and you will get the exact cause.

Thank you.