Sunil Jain
Sunil Jain

Reputation: 45

WordPress internal Server Error 500 when moving hosts

I am trying to move my WordPress site from one hosting service to another. I made a backup and restored it on the new host. But I am getting internal server 500 error on the site. I have tried to fix the .htaccess file but its still giving error.

The issue is, if I try to rename it to test it, its not giving the internal 500 error but redirecting me to WordPress installation page called wp-admin/install.php

Can someone help me for solve the issue.Thanks

Upvotes: 0

Views: 1637

Answers (5)

Subham shaw
Subham shaw

Reputation: 26

All the suggestions that are given are great, but if those do not work, then you can try to downgrade PHP. It had worked in my case when I was facing the same error.

Upvotes: 1

Neelima Naidu
Neelima Naidu

Reputation: 1

there are lot of causes for internal server error. The main reasons for internal server errors are.

  1. Corrupt .htaccess file
  2. PHP Memory limit
  3. Faulty code in Theme
  4. Corrupted plugin
  5. Corrupted core files
  6. Incompatible PHP version

In oder to fix this issue, you need to investigate in step by step order.

To solve this issue first of all you need to enable Debug mode and check the issue. after that try with restoring .htacess file, enabling default theme, disabling plugins etc.

if you still facing 500 internal server issue, follow tutorial on WPERA to fix 500 internal server error. Hope this helps.

Upvotes: 0

Raju Bhatt
Raju Bhatt

Reputation: 395

if You have changed hosting, probable You need to check database and .htacess file. If You are getting installation page means its database issue, Please check database prefix in wp-config.php file and it will solve your issue.

Upvotes: 0

Irfan Patel
Irfan Patel

Reputation: 1

I think you should check your wp-config.php and PHP version. make sure you have entered correct DB info in wp-config like db_name, password, and table_prefix etc...

Upvotes: 0

Marin Vassilev
Marin Vassilev

Reputation: 1

You can dig in the error log and find what exactly is causing the error. Steps for debug. As previously said: stop all plugins and try again. If problem still exists check logs again. Then switch to default theme and so on.

Btw have moved the DB properly? With the same connection settings.

Upvotes: 0

Related Questions