添加模块时出现500内部服务器错误

Im have a opencart 2.3 installed with a custom theme along with a custom module that shows a product slider. The problem is that i setuped the site on my localhost and everything seem to be working perfect.

But when i uploaded it to my VPS the home page gives an internal server error when i add the module the to the home page. When i remove it, the page loads fine. This happens only on my VPS. When i uploaded it to a differnt host and my localhost everything works fine.

The main problem is that i cannot find the actual error which is causing the problem because the apache error logs doesnt log any php related errors.

so far,

  • i removed the htaccess
  • enable error reporting through htaccess
  • removed extra php.ini file which might be conflicting
  • added the error reporting code on the index.php file
  • checked the opencart error logs

none of these seem to work. It shows the internal server error instead of the actual error. For almost 2 weeks i have been struggling and tried almost all the methods in SO but none seems to be working in my case

Can someone let me know how can i get it show the actual error or log it instead of the internal server error?