AJAX 500 Internal Server Error, Opencart AJAX 500 error return

I migrate a OpenCart2 website from cPanel to AWS. That’s means no beautiful interface for me to drag and drop. Now need to deal with SSH.

Everything was worked fine in my old hosting. However this weird 500 Internal Server Error keep bother me.

 

As I google around the stackoverflow. Most of them said that is my PHP script error to generate this 500 Internal Server Error. My script is exactly same as my old website.

From the Google Chrome inspect Network tab, the AJAX request have correct response but it just have the 500 HTTP Code.

Solution

End up I found it is because of the permission.

Make sure you have the write permission for the error.log and openbay.log

  • /system/storage/logs/error.log
  • /system/storage/logs/openbay.log

I set the file permission from 644 to 664.

Then this 500 Internal Server Error was removed. The issue it is because the script cannot write to the file.

Leave a Reply

Your email address will not be published. Required fields are marked *