0
votes

I am trying to move my WordPress site from one hosting to another. I have took backup and restored on new hosting. I am getting internal server 500 error on site so I have tried to fix .htaccess file but its still giving error. I am facing one strange issue during fix it. If I try to rename it for test it, its not giving error called internal 500 error but redirecting me to WordPress installation page called wp-admin/install.php let me know if someone can help me for solve the issue. Thanks

4
"HTTP 500" is generic - it doesn't tell you much besides "something went wrong, somewhere on the server". You want to look at your system logs to determine WHAT went wrong. You need more information ABOUT the problem in order to RESOLVE the problem. - paulsm4
Can you please make DEBUG : true in wp-config.php file. - Niket Joshi

4 Answers

0
votes

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.

0
votes

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...

0
votes

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.

0
votes

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.