<p>Per the OP's comment, there was a database connection error in the Craft log files. Once that was corrected it solved the 500 Internal Server Error.</p>

CC BY-SA 3.0
2015-11-11T21:11:46.797Z
2015-11-11T21:11:46.797Z
Brad Bell
<p>I'm moving my site from one host to another, and I'm having some trouble moving my craft site over. I have all of the files moved, and in the config file I'm pointing to the new database which I've imported over already. But when I go to the site or the admin url I'm getting a 500 error. Any thoughts?</p>

CC BY-SA 3.0
2015-11-11T19:27:37.857Z
Is it a Craft-styled 500 error or an Apache styled one?  If Craft, the underlying error will be in `craft/storage/runtime/logs`. If Apache, it'll be in your Apache error logs.
Brad Bell
CC BY-SA 3.0
2015-11-11T20:32:33.990Z
No problem... did that lead to you fixing the issue?  If so, would you mind posting an answer with some of the details?
Brad Bell
CC BY-SA 3.0
2015-11-11T20:45:05.220Z
Yeah, it was in the Craft Logs. I found out it was a Database connection issue. I had the incorrect database host name for my database. It was supposed to be localhost.
Isaac
<database><error>
Migrating a Craft site to a different host.
# Migrating a Craft site to a different host.

(Asked by: username_0 on 2015-11-11)

I'm moving my site from one host to another, and I'm having some trouble moving my craft site over. I have all of the files moved, and in the config file I'm pointing to the new database which I've imported over already. But when I go to the site or the admin url I'm getting a 500 error. Any thoughts?

**Tags:** database, error

> **Comments:**
> **username_1**: Is it a Craft-styled 500 error or an Apache styled one?  If Craft, the underlying error will be in `craft/storage/runtime/logs`. If Apache, it'll be in your Apache error logs.  
> **username_1**: No problem... did that lead to you fixing the issue?  If so, would you mind posting an answer with some of the details?  
> **username_0**: Yeah, it was in the Craft Logs. I found out it was a Database connection issue. I had the incorrect database host name for my database. It was supposed to be localhost.  

---

## 1 answers

### Answer by username_1 on 2015-11-11. Score: 1

Per the OP's comment, there was a database connection error in the Craft log files. Once that was corrected it solved the 500 Internal Server Error.


---

