WordPress error 500 is generally an insufficient memory problem.
Here’s how to fix it.
- Via your Cpanel or your FTP access, you will edit the wp-config file which is at the root of your WordPress site.
- Copy and paste the code below just after the line ‘That’s all, stop editing! Happy blogging. ’
define( 'WP_MEMORY_LIMIT', '256M' );
If it does not work, in this case, you must increase the PHP memory via your server or Cpanel.
Cache plugins can also cause error 500 after a website migration, you will need to deactivate or delete them and reinstall.