How to fix WordPress error 500?
Fix the WordPress 500 Internal Server Error by raising the PHP memory limit in wp-config.php and checking common plugin and theme conflicts. Step-by-step guide.
WordPress error 500 is generally an insufficient memory problem.
Here’s how to fix it:
- Via your cPanel or your FTP access, edit the
wp-config.phpfile 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, you must increase PHP memory via your server or cPanel.
Cache plugins can also cause error 500 after a website migration. You may need to deactivate or delete them, then reinstall cleanly.