3

I have a website on a live server which works fine. I have just replaced the old website on the live server with a new website on the live server which is giving me a HTTP Error 500 (Internal Server Error) messages in the web browser.

The new website works fine on the dev server.

I've checked the error_log file and it is not producing error entries to match the date/time I am getting the HTTP Error 500 messages.

How do I figure out why this is not working?


UPDATE:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
#RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
oshirowanen
  • 15,297
  • 82
  • 198
  • 350

1 Answers1

1

An unlogged 500 error on an apache server almost certainly means there's something wrong with your .htaccess file.

Try commenting out a few lines at a time or deleting them from your .htaccess file.

Useful further information as to causes of unreported error 500s can be found here.

Community
  • 1
  • 1
baranskistad
  • 2,176
  • 1
  • 21
  • 42
  • it doesn't just mean that, but that is a likely cause. The OP was asking for how to debug this cause, rather than fix the problem. How would you go about checking it's `.htaccess` rather than an issue with an unloaded apache module, for instance? – Martin Sep 11 '16 at 11:48
  • @Martin From all of my past experiences with PHP, (and as a PHP dev that's a lot) it has always been the `.htaccess`. – baranskistad Sep 11 '16 at 11:50
  • @Martin If you know any other issue possibilities, feel free to suggest an edit, or comment it. – baranskistad Sep 11 '16 at 11:51
  • Oh yes, me too, but there can be other issues such as apache modules expected but not loaded, I see the question as being more *how* to debug rather than what the cause is in this specific instance. (Sorry I feel I'm being a bit anal here) – Martin Sep 11 '16 at 11:53
  • @Martin I see. Before we _can_ debug the error I think they need to share more about their files. – baranskistad Sep 11 '16 at 11:55