Search code examples
phpinternal-server-error

500 internal server error php, how to solve?


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.


Solution

  • 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