500 internal server error php, how to solve?

4.4k views Asked by At

I created a simple php webcrawler on my webhost, but after a while it gives a 500 internal server error. Assuming the coding and permissions are good.. what can I do about it?

I upgraded from shared hosting to VPS hosting, but it seems to give the error even sooner. I am really lost here.

1

There are 1 answers

0
Moutasem Shahin On BEST ANSWER

Follow these steps:

-Enable the error reporting from php.ini file or by functions like

error_reporting(E_ALL);
ini_set('display_errors', '1');
  • Disable .htaccess file
  • Check the error_log